pub struct OutputSelector<'a> { /* private fields */ }Expand description
Filters discovered outputs by their libobs-declared protocols, codecs, and flags.
Implementations§
Source§impl<'a> OutputSelector<'a>
impl<'a> OutputSelector<'a>
pub fn protocol(self, protocol: impl Into<String>) -> Self
pub fn video_codec(self, codec: impl Into<String>) -> Self
pub fn audio_codec(self, codec: impl Into<String>) -> Self
pub fn require_capabilities(self, capabilities: OutputCapabilities) -> Self
pub fn matches(&self) -> Vec<&'a OutputTypeInfo>
pub fn best_available(&self) -> Option<&'a OutputTypeInfo>
Trait Implementations§
Source§impl<'a> Clone for OutputSelector<'a>
impl<'a> Clone for OutputSelector<'a>
Source§fn clone(&self) -> OutputSelector<'a>
fn clone(&self) -> OutputSelector<'a>
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<'a> Freeze for OutputSelector<'a>
impl<'a> RefUnwindSafe for OutputSelector<'a>
impl<'a> Send for OutputSelector<'a>
impl<'a> Sync for OutputSelector<'a>
impl<'a> Unpin for OutputSelector<'a>
impl<'a> UnsafeUnpin for OutputSelector<'a>
impl<'a> UnwindSafe for OutputSelector<'a>
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