[−][src]Struct tokio::io::ReadHalf  
The readable half of a value returned from split.
Implementations
impl<T> ReadHalf<T>[src][−]
pub fn is_pair_of(&self, other: &WriteHalf<T>) -> bool[src][−]
Checks if this ReadHalf and some WriteHalf were split from the same
stream.
pub fn unsplit(self, wr: WriteHalf<T>) -> T[src][−]
Reunites with a previously split WriteHalf.
Panics
If this ReadHalf and the given WriteHalf do not originate from the
same split operation this method will panic.
This can be checked ahead of time by comparing the stream ID
of the two halves.
Trait Implementations
impl<T: AsyncRead> AsyncRead for ReadHalf<T>[src][+]
impl<T: Debug> Debug for ReadHalf<T>[src][+]
impl<T: Send> Send for ReadHalf<T>[src]
impl<T: Sync> Sync for ReadHalf<T>[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for ReadHalf<T>
impl<T> Unpin for ReadHalf<T>
impl<T> !UnwindSafe for ReadHalf<T>
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src][+]
T: ?Sized,
impl<T> From<T> for T[src][+]
impl<T, U> Into<U> for T where
    U: From<T>, [src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src][+]
U: TryFrom<T>,