pub struct ObsCapabilities { /* private fields */ }Implementations§
Source§impl ObsCapabilities
impl ObsCapabilities
pub fn source_types(&self) -> &[SourceTypeInfo]
pub fn input_types(&self) -> &[SourceTypeInfo]
pub fn filter_types(&self) -> &[SourceTypeInfo]
pub fn transition_types(&self) -> &[SourceTypeInfo]
pub fn outputs(&self) -> &[OutputTypeInfo]
pub fn encoders(&self) -> &[EncoderTypeInfo]
pub fn services(&self) -> &[ServiceTypeInfo]
pub fn protocols(&self) -> &[String]
pub fn modules(&self) -> &[ModuleInfo]
Sourcepub fn select_video_encoder(&self) -> EncoderSelector<'_>
pub fn select_video_encoder(&self) -> EncoderSelector<'_>
Starts a deterministic selection over discovered video encoders.
Sourcepub fn select_audio_encoder(&self) -> EncoderSelector<'_>
pub fn select_audio_encoder(&self) -> EncoderSelector<'_>
Starts a deterministic selection over discovered audio encoders.
Sourcepub fn select_output(&self) -> OutputSelector<'_>
pub fn select_output(&self) -> OutputSelector<'_>
Starts a deterministic selection over discovered outputs.
Sourcepub fn best_output_plan(
&self,
request: &OutputCompatibilityRequest,
) -> Result<OutputCompatibilityPlan, OutputCompatibilityReport>
pub fn best_output_plan( &self, request: &OutputCompatibilityRequest, ) -> Result<OutputCompatibilityPlan, OutputCompatibilityReport>
Resolves the best currently available output/encoder combination for a capability request. The operation is pure over this owned capability snapshot and never creates native objects.
Trait Implementations§
Source§impl Clone for ObsCapabilities
impl Clone for ObsCapabilities
Source§fn clone(&self) -> ObsCapabilities
fn clone(&self) -> ObsCapabilities
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 moreAuto Trait Implementations§
impl Freeze for ObsCapabilities
impl RefUnwindSafe for ObsCapabilities
impl Send for ObsCapabilities
impl Sync for ObsCapabilities
impl Unpin for ObsCapabilities
impl UnsafeUnpin for ObsCapabilities
impl UnwindSafe for ObsCapabilities
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