pub struct Context<E: Encoder> { /* private fields */ }
Expand description

Auxiliary structure to encapsulate an encoder object and its additional data.

Implementations

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

Configures the encoder.

Sets the parameters associated to a determined codec.

Gets the parameters associated to a determined codec.

Sets an encoder option.

Returns the extra data added by an encoder to a codec.

Sends to the encoder a frame to be encoded.

Returns an encoded packet.

Tells encoder to clear its internal state.

Returns the underlying encoder.

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.