pub struct ObsVideoEncoder { /* private fields */ }Expand description
Represents a VideoEncoder. The VideoEncoder is removed,
if there are no references to this struct left.
If you attach this video encoder to a ObsOutputRef, it is stored internally
so you can safely drop this struct, if attached to the ObsOutputRef.
If not attached to the output, it’ll just remove itself again.
Implementations§
Source§impl ObsVideoEncoder
impl ObsVideoEncoder
Sourcepub fn new_from_info(
info: VideoEncoderInfo,
runtime: ObsRuntime,
) -> Result<Arc<Self>, ObsError>
pub fn new_from_info( info: VideoEncoderInfo, runtime: ObsRuntime, ) -> Result<Arc<Self>, ObsError>
Info: the handler attribute is no longer needed and kept for compatibility. The handler parameter will be removed in a future release.
Trait Implementations§
Source§impl Clone for ObsVideoEncoder
impl Clone for ObsVideoEncoder
Source§impl Debug for ObsVideoEncoder
impl Debug for ObsVideoEncoder
Source§impl ObsEncoderHotkeyExt for ObsVideoEncoder
impl ObsEncoderHotkeyExt for ObsVideoEncoder
fn register_hotkey( &self, name: &str, description: &str, ) -> Result<ObsHotkeyRegistration, ObsError>
Source§impl ObsEncoderTrait for ObsVideoEncoder
impl ObsEncoderTrait for ObsVideoEncoder
Source§impl ObsObjectTrait for ObsVideoEncoder
impl ObsObjectTrait for ObsVideoEncoder
Source§fn update_settings(&self, settings: ObsData) -> Result<(), ObsError>
fn update_settings(&self, settings: ObsData) -> Result<(), ObsError>
Updates the settings of this output. Fails if active.
fn runtime(&self) -> &ObsRuntime
fn settings(&self) -> Result<ImmutableObsData, ObsError>
fn hotkey_data(&self) -> Result<ImmutableObsData, ObsError>
fn id(&self) -> ObsString
fn name(&self) -> ObsString
Source§fn create_updater<'a, T: ObsObjectUpdater<'a, ToUpdate = Self> + Send + Sync>(
&'a mut self,
) -> Result<T, ObsError>
fn create_updater<'a, T: ObsObjectUpdater<'a, ToUpdate = Self> + Send + Sync>( &'a mut self, ) -> Result<T, ObsError>
Updates the object with the current settings.
For examples please take a look at the Github repository.
Source§impl ObsPropertyActions for ObsVideoEncoder
impl ObsPropertyActions for ObsVideoEncoder
Auto Trait Implementations§
impl !RefUnwindSafe for ObsVideoEncoder
impl !UnwindSafe for ObsVideoEncoder
impl Forget for ObsVideoEncoder
impl Freeze for ObsVideoEncoderwhere
*const [u8] is !null: Freeze,
PhantomData<[u8]>: Freeze,
*const ArcInner<RwLock<ImmutableObsData>> is !null: Freeze,
PhantomData<ArcInner<RwLock<ImmutableObsData>>>: 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,
*const ArcInner<NativeHandleLease> is !null: Freeze,
PhantomData<ArcInner<NativeHandleLease>>: Freeze,
PhantomData<fn() -> *mut obs_encoder>: Freeze,
impl Move for ObsVideoEncoder
impl Send for ObsVideoEncoder
impl Sync for ObsVideoEncoder
impl Unpin for ObsVideoEncoder
impl UnsafeUnpin for ObsVideoEncoderwhere
*const [u8] is !null: UnsafeUnpin,
PhantomData<[u8]>: UnsafeUnpin,
*const ArcInner<RwLock<ImmutableObsData>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<ImmutableObsData>>>: 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,
*const ArcInner<NativeHandleLease> is !null: UnsafeUnpin,
PhantomData<ArcInner<NativeHandleLease>>: UnsafeUnpin,
PhantomData<fn() -> *mut obs_encoder>: UnsafeUnpin,
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