Descriptor

Trait Descriptor 

Source
pub trait Descriptor {
    type OutputEncoder: Encoder;

    // Required methods
    fn create(&self) -> Self::OutputEncoder;
    fn describe(&self) -> &Descr;
}
Expand description

Used to get the descriptor of a codec and create its own encoder.

Required Associated Types§

Source

type OutputEncoder: Encoder

The specific type of the encoder.

Required Methods§

Source

fn create(&self) -> Self::OutputEncoder

Creates a new encoder for the requested codec.

Source

fn describe(&self) -> &Descr

Returns the codec descriptor.

Implementors§