pub struct OutputTypeInfo { /* private fields */ }Implementations§
Source§impl OutputTypeInfo
impl OutputTypeInfo
pub fn id(&self) -> &str
pub fn display_name(&self) -> Option<&str>
pub fn video_codecs(&self) -> &[String]
pub fn audio_codecs(&self) -> &[String]
pub fn protocols(&self) -> &[String]
pub fn flags(&self) -> u32
pub fn capability_flags(&self) -> OutputCapabilities
pub fn supports_video_codec(&self, codec: &str) -> bool
pub fn supports_audio_codec(&self, codec: &str) -> bool
pub fn supports_protocol(&self, protocol: &str) -> bool
pub fn properties(&self) -> Result<Vec<PropertyMetadata>, ObsError>
pub fn settings_schema(&self) -> Result<SettingsSchema, ObsError>
pub fn settings_schema_for( &self, settings: &ObsData, ) -> Result<SettingsSchema, ObsError>
pub fn settings_snapshot_for( &self, settings: &ObsData, ) -> Result<SettingsSnapshot, ObsError>
pub fn default_settings(&self) -> Result<Option<ImmutableObsData>, ObsError>
Sourcepub fn default_settings_mut(&self) -> Result<ObsData, ObsError>
pub fn default_settings_mut(&self) -> Result<ObsData, ObsError>
Returns a mutable settings object initialized from this output type’s defaults.
Trait Implementations§
Source§impl Clone for OutputTypeInfo
impl Clone for OutputTypeInfo
Auto Trait Implementations§
impl Forget for OutputTypeInfo
impl Freeze for OutputTypeInfowhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const ArcInner<Sender<ObsCommand>> is !null: Freeze,
PhantomData<ArcInner<Sender<ObsCommand>>>: Freeze,
*const ArcInner<Sender<Box<dyn FnOnce() + Send>>> is !null: Freeze,
PhantomData<ArcInner<Sender<Box<dyn FnOnce() + Send>>>>: Freeze,
*const ArcInner<Atomic<u8>> is !null: Freeze,
PhantomData<ArcInner<Atomic<u8>>>: Freeze,
*const ArcInner<NativeObjectRegistry> is !null: Freeze,
PhantomData<ArcInner<NativeObjectRegistry>>: Freeze,
NonZero<u64>: Freeze,
*const ArcInner<_ObsRuntimeGuard> is !null: Freeze,
PhantomData<ArcInner<_ObsRuntimeGuard>>: Freeze,
impl Move for OutputTypeInfo
impl RefUnwindSafe for OutputTypeInfowhere
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,
impl Send for OutputTypeInfo
impl Sync for OutputTypeInfo
impl Unpin for OutputTypeInfo
impl UnsafeUnpin for OutputTypeInfowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<Sender<ObsCommand>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Sender<ObsCommand>>>: UnsafeUnpin,
*const ArcInner<Sender<Box<dyn FnOnce() + Send>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Sender<Box<dyn FnOnce() + Send>>>>: UnsafeUnpin,
*const ArcInner<Atomic<u8>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<u8>>>: UnsafeUnpin,
*const ArcInner<NativeObjectRegistry> is !null: UnsafeUnpin,
PhantomData<ArcInner<NativeObjectRegistry>>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
*const ArcInner<_ObsRuntimeGuard> is !null: UnsafeUnpin,
PhantomData<ArcInner<_ObsRuntimeGuard>>: UnsafeUnpin,
impl UnwindSafe for OutputTypeInfowhere
RawVecInner: UnwindSafe,
Arc<Sender<ObsCommand>>: UnwindSafe,
Arc<Sender<Box<dyn FnOnce() + Send>>>: UnwindSafe,
Arc<Atomic<u8>>: UnwindSafe,
Arc<NativeObjectRegistry>: UnwindSafe,
NonZero<u64>: UnwindSafe,
Arc<_ObsRuntimeGuard>: UnwindSafe,
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