[][src]Struct tokio::io::ReadHalf

pub struct ReadHalf<T> { /* fields omitted */ }
This is supported on feature="io-util" only.

The readable half of a value returned from split.

Methods

impl<T> ReadHalf<T>[src]

pub fn is_pair_of(&self, other: &WriteHalf<T>) -> bool[src]

This is supported on feature="io-util" only.

Checks if this ReadHalf and some WriteHalf were split from the same stream.

pub fn unsplit(self, wr: WriteHalf<T>) -> T[src]

This is supported on feature="io-util" only.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.