CodecConfiguration

Trait CodecConfiguration 

Source
pub trait CodecConfiguration:
    Clone
    + Send
    + Sync
    + 'static {
    type Parameters: CodecParameters;

    // Required methods
    fn from_parameters(parameters: &Self::Parameters) -> Result<Self>;
    fn configure(&mut self, parameters: &Self::Parameters) -> Result<()>;
    fn configure_with_option(
        &mut self,
        key: &str,
        value: &Variant,
    ) -> Result<()>;

    // Provided methods
    fn media_type() -> MediaType { ... }
    fn codec_type() -> CodecType { ... }
}

Required Associated Types§

Required Methods§

Source

fn from_parameters(parameters: &Self::Parameters) -> Result<Self>

Source

fn configure(&mut self, parameters: &Self::Parameters) -> Result<()>

Source

fn configure_with_option(&mut self, key: &str, value: &Variant) -> Result<()>

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§