pub struct Limit<R> { /* private fields */ }
Expand description

Limit the number of bytes that can be read out of a reader to the specified limit.

Constructed through Reader::limit.

Trait Implementations

The exact position of a reader.

Error type raised by the current reader.

Skip over the given number of bytes.

Read a slice out of the current reader.

Read a slice into the given buffer.

Read a single byte.

Read an array out of the current reader.

Keep an accurate record of the position within the reader.

Keep an accurate record of the position within the reader.

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.