Skip to main content

Format

Trait Format 

Source
pub trait Format: Send + Sync {
    // Required method
    fn set_option(&mut self, key: &str, value: &Variant) -> Result<(), Error>;
}
Expand description

Base trait for all media format implementations

Required Methods§

Source

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

Set a format-specific option

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Format for MkvDemuxer

Source§

fn set_option(&mut self, _key: &str, _value: &Variant) -> Result<(), Error>

Source§

impl Format for Mp4Demuxer

Source§

fn set_option(&mut self, _key: &str, _value: &Variant) -> Result<(), Error>

Implementors§