pub struct Context<D: Decoder> { /* private fields */ }
Expand description

Auxiliary structure to encapsulate a decoder object and its additional data.

Implementations

Retrieves a codec descriptor from a codec list through its name, creates the relative decoder, and encapsulates it into a new Context.

Saves the extra data contained in a codec.

Sends to the decoder a packet to be decoded.

Returns a decoded frame.

Configures the decoder.

Tells decoder to clear its internal state.

Returns the underlying decoder.

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.