pub struct ObsAudioEncoderBuilder { /* private fields */ }Implementations§
Source§impl ObsAudioEncoderBuilder
impl ObsAudioEncoderBuilder
pub fn new(context: ObsContext, encoder_id: &str) -> Self
pub fn get_encoder_id(&self) -> &ObsAudioEncoderType
pub fn set_settings(&mut self, settings: ObsData) -> &mut Self
pub fn set_hotkey_data(&mut self, hotkey_data: ObsData) -> &mut Self
pub fn get_settings(&self) -> Option<&ObsData>
pub fn get_hotkey_data(&self) -> Option<&ObsData>
pub fn get_settings_mut(&mut self) -> Option<&mut ObsData>
pub fn get_hotkey_data_mut(&mut self) -> Option<&mut ObsData>
Source§impl ObsAudioEncoderBuilder
impl ObsAudioEncoderBuilder
pub fn apply_to_context( self, output: &mut dyn ObsOutputTrait, name: &str, settings: Option<ObsData>, hotkey_data: Option<ObsData>, mixer_idx: usize, ) -> Result<Arc<ObsAudioEncoder>, ObsError>
Trait Implementations§
Source§impl Debug for ObsAudioEncoderBuilder
impl Debug for ObsAudioEncoderBuilder
Source§impl ObsPropertyObject for ObsAudioEncoderBuilder
impl ObsPropertyObject for ObsAudioEncoderBuilder
Source§fn get_properties(&self) -> Result<HashMap<String, ObsProperty>, ObsError>
fn get_properties(&self) -> Result<HashMap<String, ObsProperty>, ObsError>
Returns the properties of the object
fn get_properties_by_source_id<T: Into<ObsString> + Sync + Send>( id: T, runtime: &ObsRuntime, ) -> Result<HashMap<String, ObsProperty>, ObsError>
Source§impl ObsPropertyObjectPrivate for ObsAudioEncoderBuilder
impl ObsPropertyObjectPrivate for ObsAudioEncoderBuilder
fn get_properties_raw( &self, ) -> Result<SmartPointerSendable<*mut obs_properties_t>, ObsError>
fn get_properties_by_id_raw<T: Into<ObsString> + Sync + Send>( id: T, runtime: ObsRuntime, ) -> Result<SmartPointerSendable<*mut obs_properties_t>, ObsError>
Auto Trait Implementations§
impl Freeze for ObsAudioEncoderBuilder
impl !RefUnwindSafe for ObsAudioEncoderBuilder
impl Send for ObsAudioEncoderBuilder
impl Sync for ObsAudioEncoderBuilder
impl Unpin for ObsAudioEncoderBuilder
impl UnsafeUnpin for ObsAudioEncoderBuilder
impl !UnwindSafe for ObsAudioEncoderBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more