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

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

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

Methods

impl<T> ReadHalf<T> where
    T: AsyncRead + AsyncWrite
[src]

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

Reunite with a previously split WriteHalf.

Panics

If this ReadHalf and the given WriteHalf do not originate from the same AsyncRead::split operation this method will panic.

Trait Implementations

impl<T> AsyncRead for ReadHalf<T> where
    T: AsyncRead
[src]

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

impl<T> Read for ReadHalf<T> where
    T: AsyncRead
[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<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<R> ReadBytesExt for R where
    R: Read + ?Sized
[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.