pub struct Chain<T, U> { /* private fields */ }
Expand description

A buf stream that sequences two buf streams together.

Chain values are produced by the chain function on BufStream.

Trait Implementations

Values yielded by the BufStream. Read more

The error type this BufStream might generate.

Attempt to pull out the next buffer of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more

Returns the bounds on the remaining length of the stream. 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

Takes two buf streams and creates a new buf stream over both in sequence. Read more

Consumes all data from self, storing it in byte storage of type T. Read more

Limit the number of bytes that the stream can yield. Read more

Creates a Stream from a BufStream. 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.