pub struct OwnedReadHalf<T>(pub Rc<UnsafeCell<T>>);
Expand description
Owned Read Half Part
Tuple Fields§
§0: Rc<UnsafeCell<T>>
Implementations§
Source§impl<T> OwnedReadHalf<T>where
T: AsyncWriteRent,
impl<T> OwnedReadHalf<T>where
T: AsyncWriteRent,
Sourcepub fn reunite(self, other: OwnedWriteHalf<T>) -> Result<T, ReuniteError<T>>
pub fn reunite(self, other: OwnedWriteHalf<T>) -> Result<T, ReuniteError<T>>
reunite write half
Source§impl OwnedReadHalf<TcpStream>
impl OwnedReadHalf<TcpStream>
Sourcepub fn peer_addr(&self) -> Result<SocketAddr>
pub fn peer_addr(&self) -> Result<SocketAddr>
Returns the remote address that this stream is connected to.
Sourcepub fn local_addr(&self) -> Result<SocketAddr>
pub fn local_addr(&self) -> Result<SocketAddr>
Returns the local address that this stream is bound to.
Source§impl OwnedReadHalf<UnixStream>
impl OwnedReadHalf<UnixStream>
Sourcepub fn peer_addr(&self) -> Result<SocketAddr>
pub fn peer_addr(&self) -> Result<SocketAddr>
Returns the remote address that this stream is connected to.
Sourcepub fn local_addr(&self) -> Result<SocketAddr>
pub fn local_addr(&self) -> Result<SocketAddr>
Returns the local address that this stream is bound to.
Trait Implementations§
Source§impl<Inner> AsyncReadRent for OwnedReadHalf<Inner>where
Inner: AsyncReadRent,
impl<Inner> AsyncReadRent for OwnedReadHalf<Inner>where
Inner: AsyncReadRent,
Source§impl<Inner> CancelableAsyncReadRent for OwnedReadHalf<Inner>where
Inner: CancelableAsyncReadRent,
impl<Inner> CancelableAsyncReadRent for OwnedReadHalf<Inner>where
Inner: CancelableAsyncReadRent,
Source§fn cancelable_read<T: IoBufMut>(
&mut self,
buf: T,
c: CancelHandle,
) -> impl Future<Output = BufResult<usize, T>>
fn cancelable_read<T: IoBufMut>( &mut self, buf: T, c: CancelHandle, ) -> impl Future<Output = BufResult<usize, T>>
Same as read(2)
Source§fn cancelable_readv<T: IoVecBufMut>(
&mut self,
buf: T,
c: CancelHandle,
) -> impl Future<Output = BufResult<usize, T>>
fn cancelable_readv<T: IoVecBufMut>( &mut self, buf: T, c: CancelHandle, ) -> impl Future<Output = BufResult<usize, T>>
Same as readv(2)
Auto Trait Implementations§
impl<T> Freeze for OwnedReadHalf<T>
impl<T> !RefUnwindSafe for OwnedReadHalf<T>
impl<T> !Send for OwnedReadHalf<T>
impl<T> !Sync for OwnedReadHalf<T>
impl<T> Unpin for OwnedReadHalf<T>
impl<T> !UnwindSafe for OwnedReadHalf<T>
Blanket Implementations§
Source§impl<A> AsyncReadRentExt for Awhere
A: AsyncReadRent + ?Sized,
impl<A> AsyncReadRentExt for Awhere
A: AsyncReadRent + ?Sized,
Source§async fn read_exact<T>(&mut self, buf: T) -> (Result<usize, Error>, T)where
T: IoBufMut + 'static,
async fn read_exact<T>(&mut self, buf: T) -> (Result<usize, Error>, T)where
T: IoBufMut + 'static,
Read until buf capacity is fulfilled
Source§async fn read_vectored_exact<T>(&mut self, buf: T) -> (Result<usize, Error>, T)where
T: IoVecBufMut + 'static,
async fn read_vectored_exact<T>(&mut self, buf: T) -> (Result<usize, Error>, T)where
T: IoVecBufMut + 'static,
Readv until buf capacity is fulfilled
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<A> CancelableAsyncReadRentExt for Awhere
A: CancelableAsyncReadRent + ?Sized,
impl<A> CancelableAsyncReadRentExt for Awhere
A: CancelableAsyncReadRent + ?Sized,
Source§async fn cancelable_read_exact<T>(
&mut self,
buf: T,
c: CancelHandle,
) -> (Result<usize, Error>, T)where
T: IoBufMut + 'static,
async fn cancelable_read_exact<T>(
&mut self,
buf: T,
c: CancelHandle,
) -> (Result<usize, Error>, T)where
T: IoBufMut + 'static,
Read until buf capacity is fulfilled
Source§async fn cancelable_read_vectored_exact<T>(
&mut self,
buf: T,
c: CancelHandle,
) -> (Result<usize, Error>, T)where
T: IoVecBufMut + 'static,
async fn cancelable_read_vectored_exact<T>(
&mut self,
buf: T,
c: CancelHandle,
) -> (Result<usize, Error>, T)where
T: IoVecBufMut + 'static,
Readv until buf capacity is fulfilled
Source§async fn cancelable_read_u8(&mut self, c: CancelHandle) -> Result<u8, Error>
async fn cancelable_read_u8(&mut self, c: CancelHandle) -> Result<u8, Error>
Read number in async way
Source§async fn cancelable_read_u16(&mut self, c: CancelHandle) -> Result<u16, Error>
async fn cancelable_read_u16(&mut self, c: CancelHandle) -> Result<u16, Error>
Read number in async way
Source§async fn cancelable_read_u32(&mut self, c: CancelHandle) -> Result<u32, Error>
async fn cancelable_read_u32(&mut self, c: CancelHandle) -> Result<u32, Error>
Read number in async way
Source§async fn cancelable_read_u64(&mut self, c: CancelHandle) -> Result<u64, Error>
async fn cancelable_read_u64(&mut self, c: CancelHandle) -> Result<u64, Error>
Read number in async way
Source§async fn cancelable_read_u128(&mut self, c: CancelHandle) -> Result<u128, Error>
async fn cancelable_read_u128(&mut self, c: CancelHandle) -> Result<u128, Error>
Read number in async way
Source§async fn cancelable_read_i8(&mut self, c: CancelHandle) -> Result<i8, Error>
async fn cancelable_read_i8(&mut self, c: CancelHandle) -> Result<i8, Error>
Read number in async way
Source§async fn cancelable_read_i16(&mut self, c: CancelHandle) -> Result<i16, Error>
async fn cancelable_read_i16(&mut self, c: CancelHandle) -> Result<i16, Error>
Read number in async way
Source§async fn cancelable_read_i32(&mut self, c: CancelHandle) -> Result<i32, Error>
async fn cancelable_read_i32(&mut self, c: CancelHandle) -> Result<i32, Error>
Read number in async way
Source§async fn cancelable_read_i64(&mut self, c: CancelHandle) -> Result<i64, Error>
async fn cancelable_read_i64(&mut self, c: CancelHandle) -> Result<i64, Error>
Read number in async way
Source§async fn cancelable_read_i128(&mut self, c: CancelHandle) -> Result<i128, Error>
async fn cancelable_read_i128(&mut self, c: CancelHandle) -> Result<i128, Error>
Read number in async way
Source§async fn cancelable_read_f32(&mut self, c: CancelHandle) -> Result<f32, Error>
async fn cancelable_read_f32(&mut self, c: CancelHandle) -> Result<f32, Error>
Read number in async way
Source§async fn cancelable_read_f64(&mut self, c: CancelHandle) -> Result<f64, Error>
async fn cancelable_read_f64(&mut self, c: CancelHandle) -> Result<f64, Error>
Read number in async way
Source§async fn cancelable_read_u8_le(&mut self, c: CancelHandle) -> Result<u8, Error>
async fn cancelable_read_u8_le(&mut self, c: CancelHandle) -> Result<u8, Error>
Read number in async way
Source§async fn cancelable_read_u16_le(
&mut self,
c: CancelHandle,
) -> Result<u16, Error>
async fn cancelable_read_u16_le( &mut self, c: CancelHandle, ) -> Result<u16, Error>
Read number in async way
Source§async fn cancelable_read_u32_le(
&mut self,
c: CancelHandle,
) -> Result<u32, Error>
async fn cancelable_read_u32_le( &mut self, c: CancelHandle, ) -> Result<u32, Error>
Read number in async way
Source§async fn cancelable_read_u64_le(
&mut self,
c: CancelHandle,
) -> Result<u64, Error>
async fn cancelable_read_u64_le( &mut self, c: CancelHandle, ) -> Result<u64, Error>
Read number in async way
Source§async fn cancelable_read_u128_le(
&mut self,
c: CancelHandle,
) -> Result<u128, Error>
async fn cancelable_read_u128_le( &mut self, c: CancelHandle, ) -> Result<u128, Error>
Read number in async way
Source§async fn cancelable_read_i8_le(&mut self, c: CancelHandle) -> Result<i8, Error>
async fn cancelable_read_i8_le(&mut self, c: CancelHandle) -> Result<i8, Error>
Read number in async way
Source§async fn cancelable_read_i16_le(
&mut self,
c: CancelHandle,
) -> Result<i16, Error>
async fn cancelable_read_i16_le( &mut self, c: CancelHandle, ) -> Result<i16, Error>
Read number in async way
Source§async fn cancelable_read_i32_le(
&mut self,
c: CancelHandle,
) -> Result<i32, Error>
async fn cancelable_read_i32_le( &mut self, c: CancelHandle, ) -> Result<i32, Error>
Read number in async way
Source§async fn cancelable_read_i64_le(
&mut self,
c: CancelHandle,
) -> Result<i64, Error>
async fn cancelable_read_i64_le( &mut self, c: CancelHandle, ) -> Result<i64, Error>
Read number in async way
Source§async fn cancelable_read_i128_le(
&mut self,
c: CancelHandle,
) -> Result<i128, Error>
async fn cancelable_read_i128_le( &mut self, c: CancelHandle, ) -> Result<i128, Error>
Read number in async way
Source§async fn cancelable_read_f32_le(
&mut self,
c: CancelHandle,
) -> Result<f32, Error>
async fn cancelable_read_f32_le( &mut self, c: CancelHandle, ) -> Result<f32, Error>
Read number in async way
Source§async fn cancelable_read_f64_le(
&mut self,
c: CancelHandle,
) -> Result<f64, Error>
async fn cancelable_read_f64_le( &mut self, c: CancelHandle, ) -> Result<f64, Error>
Read number in async way