Skip to main content

Interface

Trait Interface 

Source
pub trait Interface: InternalInterface + Default {
    type Context;
    type Cfg;

    // Required methods
    fn kind(&self) -> Kind;
    fn create(
        &self,
        cfg: <Self as Interface>::Cfg,
        flags: vpx_codec_flags_t,
    ) -> Result<<Self as Interface>::Context, Error>;

    // Provided method
    fn name(&self) -> &'static str { ... }
}

Required Associated Types§

Required Methods§

Source

fn kind(&self) -> Kind

Source

fn create( &self, cfg: <Self as Interface>::Cfg, flags: vpx_codec_flags_t, ) -> Result<<Self as Interface>::Context, Error>

Provided Methods§

Source

fn name(&self) -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§