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
Sourcepub fn with_audio_encoder(
self,
slot: usize,
encoder: Arc<ObsAudioEncoder>,
) -> Self
pub fn with_audio_encoder( self, slot: usize, encoder: Arc<ObsAudioEncoder>, ) -> Self
Compatibility helper: the index here is an output encoder slot, not the encoder’s source mix.
pub fn with_audio_encoder_at_slot( self, slot: AudioEncoderSlot, 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, slot: usize) -> Self
pub fn without_audio_encoder_at_slot(self, slot: AudioEncoderSlot) -> 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§impl Debug for ObsOutputComposition
impl Debug for ObsOutputComposition
Auto Trait Implementations§
impl !RefUnwindSafe for ObsOutputComposition
impl !UnwindSafe for ObsOutputComposition
impl Forget for ObsOutputComposition
impl Freeze for ObsOutputCompositionwhere
*const ArcInner<ObsVideoEncoder> is !null: Freeze,
PhantomData<ArcInner<ObsVideoEncoder>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(usize, Arc<ObsAudioEncoder>)>: Freeze,
*const ArcInner<ObsServiceRef> is !null: Freeze,
PhantomData<ArcInner<ObsServiceRef>>: Freeze,
impl Move for ObsOutputComposition
impl Send for ObsOutputCompositionwhere
Arc<ObsVideoEncoder>: Send,
RawTable<(usize, Arc<ObsAudioEncoder>)>: Send,
Arc<ObsServiceRef>: Send,
impl Sync for ObsOutputCompositionwhere
Arc<ObsVideoEncoder>: Sync,
RawTable<(usize, Arc<ObsAudioEncoder>)>: Sync,
Arc<ObsServiceRef>: Sync,
impl Unpin for ObsOutputCompositionwhere
Arc<ObsVideoEncoder>: Unpin,
*const u8 is !null: Unpin,
Arc<ObsAudioEncoder>: Unpin,
Arc<ObsServiceRef>: Unpin,
impl UnsafeUnpin for ObsOutputCompositionwhere
*const ArcInner<ObsVideoEncoder> is !null: UnsafeUnpin,
PhantomData<ArcInner<ObsVideoEncoder>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(usize, Arc<ObsAudioEncoder>)>: UnsafeUnpin,
*const ArcInner<ObsServiceRef> is !null: UnsafeUnpin,
PhantomData<ArcInner<ObsServiceRef>>: UnsafeUnpin,
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