pub trait CodecConfig:
Clone
+ Send
+ Sync
+ 'static {
// Required methods
fn media_type() -> MediaType;
fn codec_type() -> CodecType;
fn from_parameters(params: &CodecParameters) -> Result<Self>;
fn configure(&mut self, params: &CodecParameters) -> Result<()>;
fn configure_with_option(
&mut self,
key: &str,
value: &Variant,
) -> Result<()>;
}Required Methods§
fn media_type() -> MediaType
fn codec_type() -> CodecType
fn from_parameters(params: &CodecParameters) -> Result<Self>
fn configure(&mut self, params: &CodecParameters) -> Result<()>
fn configure_with_option(&mut self, key: &str, value: &Variant) -> Result<()>
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§
impl CodecConfig for AudioDecoder
Available on crate feature
audio only.impl CodecConfig for VideoDecoder
Available on crate feature
video only.impl CodecConfig for AudioEncoder
Available on crate feature
audio only.impl CodecConfig for VideoEncoder
Available on crate feature
video only.