[][src]Struct futures_util::io::ReadHalf

pub struct ReadHalf<T> { /* fields omitted */ }

The readable half of an object returned from AsyncRead::split.

Implementations

impl<T: Unpin> ReadHalf<T>[src]

pub fn reunite(self, other: WriteHalf<T>) -> Result<T, ReuniteError<T>>[src]

Attempts to put the two "halves" of a split AsyncRead + AsyncWrite back together. Succeeds only if the ReadHalf<T> and WriteHalf<T> are a matching pair originating from the same call to AsyncReadExt::split.

Trait Implementations

impl<R: AsyncRead> AsyncRead for ReadHalf<R>[src]

impl<T: Debug> Debug for ReadHalf<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for ReadHalf<T>

impl<T> Send for ReadHalf<T> where
    T: Send

impl<T> Sync for ReadHalf<T> where
    T: Send

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<R> AsyncReadExt for R where
    R: AsyncRead + ?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.