pub struct StreamingBuffer<W> { /* private fields */ }
Expand description

A WritableBuffer that streams data to a Write implementation.

Self::result must be called to determine if an I/O error occurred during writing.

It is advisable to use a buffered writer like BufWriter instead of an unbuffered writer like File.

Implementations

Create a new StreamingBuffer backed by the given writer.

Unwraps this StreamingBuffer giving back the original writer.

Returns any error that occurred during writing.

Trait Implementations

Formats the value using the given formatter. Read more

Returns position/offset for data to be written at. Read more

Reserves specified number of bytes in the buffer. Read more

Writes zero bytes at the end of the buffer until the buffer has the specified length. Read more

Writes the specified slice of bytes at the end of the buffer.

Writes the specified Pod type at the end of the buffer.

Writes the specified Pod slice at the end of 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.

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.