pub struct ObsOutputComposition { /* private fields */ }Expand description
Desired encoder/service wiring for an OBS output.
Applying a composition replaces the complete managed wiring in one actor command: an
omitted video encoder or service is detached, and audio mixer slots not present in
audio_encoders are cleared. All handles are validated for runtime affinity before any
native state is changed.
Implementations§
Source§impl ObsOutputComposition
impl ObsOutputComposition
pub fn new() -> Self
pub fn with_video_encoder(self, encoder: Arc<ObsVideoEncoder>) -> Self
pub fn with_audio_encoder( self, mixer_idx: usize, encoder: Arc<ObsAudioEncoder>, ) -> Self
pub fn with_service(self, service: Arc<ObsServiceRef>) -> Self
pub fn without_video_encoder(self) -> Self
pub fn without_audio_encoder(self, mixer_idx: usize) -> Self
pub fn without_service(self) -> Self
pub fn video_encoder(&self) -> Option<&Arc<ObsVideoEncoder>>
pub fn audio_encoders(&self) -> &HashMap<usize, Arc<ObsAudioEncoder>>
pub fn service(&self) -> Option<&Arc<ObsServiceRef>>
Trait Implementations§
Source§impl Clone for ObsOutputComposition
impl Clone for ObsOutputComposition
Source§fn clone(&self) -> ObsOutputComposition
fn clone(&self) -> ObsOutputComposition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObsOutputComposition
impl Debug for ObsOutputComposition
Source§impl Default for ObsOutputComposition
impl Default for ObsOutputComposition
Source§fn default() -> ObsOutputComposition
fn default() -> ObsOutputComposition
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ObsOutputComposition
impl !UnwindSafe for ObsOutputComposition
impl Freeze for ObsOutputComposition
impl Send for ObsOutputComposition
impl Sync for ObsOutputComposition
impl Unpin for ObsOutputComposition
impl UnsafeUnpin for ObsOutputComposition
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