Skip to main content

DecoderFactory

Trait DecoderFactory 

Source
pub trait DecoderFactory: Send + Sync {
    // Required methods
    fn descriptor(&self) -> &DecoderDescriptor;
    fn create(&self, params: CodecParameters) -> Result<Box<dyn Decoder>>;
}
Expand description

Factory for creating decoder instances. Implementations register via inventory.

Required Methods§

Trait Implementations§

Source§

impl Collect for &'static dyn DecoderFactory

Implementors§