Descriptor

Trait Descriptor 

Source
pub trait Descriptor {
    type OutputDecoder: Decoder;

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

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

Required Associated Types§

Source

type OutputDecoder: Decoder

The specific type of the decoder.

Required Methods§

Source

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

Creates a new decoder for the requested codec.

Source

fn describe(&self) -> &Descr

Returns the codec descriptor.

Implementors§