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§
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
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.