pub struct ObsOutputPipelineBuilder { /* private fields */ }Expand description
Builder for one validated OBS output graph.
Implementations§
Source§impl ObsOutputPipelineBuilder
impl ObsOutputPipelineBuilder
pub fn video_encoder(self, encoder: Arc<ObsVideoEncoder>) -> Self
pub fn audio_encoder( self, mixer_idx: usize, encoder: Arc<ObsAudioEncoder>, ) -> Self
pub fn service(self, service: Arc<ObsServiceRef>) -> Self
Sourcepub fn validate(&self) -> Result<(), ObsError>
pub fn validate(&self) -> Result<(), ObsError>
Validates the complete graph without creating an output.
Sourcepub fn build(self) -> Result<ObsOutputPipeline, ObsError>
pub fn build(self) -> Result<ObsOutputPipeline, ObsError>
Validates the complete graph, creates the output, then applies the desired state. No output is created when validation fails.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ObsOutputPipelineBuilder
impl !UnwindSafe for ObsOutputPipelineBuilder
impl Freeze for ObsOutputPipelineBuilder
impl Send for ObsOutputPipelineBuilder
impl Sync for ObsOutputPipelineBuilder
impl Unpin for ObsOutputPipelineBuilder
impl UnsafeUnpin for ObsOutputPipelineBuilder
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