pub struct PayloadBuffer<S> { /* private fields */ }
Expand description

Payload buffer

Implementations

Create new PayloadBuffer instance

Get mutable reference to an inner stream.

Read first available chunk of bytes

Check if buffer contains enough bytes

Return reference to the first chunk of data

Read exact number of bytes

Remove specified amount if bytes from buffer

Copy buffered data

Read until specified ending

Read bytes until new line delimiter

Put unprocessed data back to the buffer

Get remaining data from the buffer

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.

Should always be Self
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.