Skip to main content

ObsEncoderTrait

Trait ObsEncoderTrait 

Source
pub trait ObsEncoderTrait: ObsObjectTrait<Native = *mut obs_encoder> {
    // Provided methods
    fn codec(&self) -> Result<Option<String>, ObsError> { ... }
    fn is_active(&self) -> Result<bool, ObsError> { ... }
}

Provided Methods§

Source

fn codec(&self) -> Result<Option<String>, ObsError>

Returns the codec identifier reported by the live encoder instance.

Source

fn is_active(&self) -> Result<bool, ObsError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§