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>
Auto Trait Implementations§
impl<'a> Forget for OutputSelector<'a>
impl<'a> Freeze for OutputSelector<'a>where
&'a [OutputTypeInfo]: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
InternalBitFlags: Freeze,
impl<'a> Move for OutputSelector<'a>
impl<'a> RefUnwindSafe for OutputSelector<'a>where
Atomic<usize>: RefUnwindSafe,
Sender<ObsCommand>: RefUnwindSafe,
Sender<Box<dyn FnOnce() + Send>>: RefUnwindSafe,
Atomic<u8>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
RwLock<HashSet<NativeObjectId>>: RefUnwindSafe,
NonZero<u64>: RefUnwindSafe,
Mutex<Option<JoinHandle<()>>>: RefUnwindSafe,
Sender<()>: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
impl<'a> Send for OutputSelector<'a>
impl<'a> Sync for OutputSelector<'a>
impl<'a> Unpin for OutputSelector<'a>
impl<'a> UnsafeUnpin for OutputSelector<'a>where
&'a [OutputTypeInfo]: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
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