pub struct IoReader<R: Read>(pub R);
Expand description

Wrapper that implements Input for any Read type.

Tuple Fields

0: R

Trait Implementations

Should return the remaining length of the input data. If no information about the input length is available, None should be returned. Read more

Read the exact number of bytes required to fill the given buffer. Read more

Read a single byte from the input.

Descend into nested reference when decoding. This is called when decoding a new refence-based instance, such as Vec or Box. Currently all such types are allocated on the heap. Read more

Ascend to previous structure level when decoding. This is called when decoding reference-based type is finished. 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

Performs the conversion.

Performs the conversion.

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.