pub struct ReadHalf<T> { /* private fields */ }
Expand description

The readable half of a value returned from split.

Implementations

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

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

Attempts to read from the AsyncRead into buf. Read more

Pulls some bytes from this source into the specified BufMut, returning how many bytes were read. Read more

Prepares an uninitialized buffer to be safe to pass to read. Returns true if the supplied buffer was zeroed out. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.