pub enum ObsEitherSource<A: ObsSourceTrait + Clone + 'static, B: ObsSourceTrait + Clone + 'static> {
Left(A),
Right(B),
}Variants§
Trait Implementations§
Source§impl<A: Clone + ObsSourceTrait + Clone + 'static, B: Clone + ObsSourceTrait + Clone + 'static> Clone for ObsEitherSource<A, B>
impl<A: Clone + ObsSourceTrait + Clone + 'static, B: Clone + ObsSourceTrait + Clone + 'static> Clone for ObsEitherSource<A, B>
Source§fn clone(&self) -> ObsEitherSource<A, B>
fn clone(&self) -> ObsEitherSource<A, B>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<A: Debug + ObsSourceTrait + Clone + 'static, B: Debug + ObsSourceTrait + Clone + 'static> Debug for ObsEitherSource<A, B>
impl<A: Debug + ObsSourceTrait + Clone + 'static, B: Debug + ObsSourceTrait + Clone + 'static> Debug for ObsEitherSource<A, B>
Source§impl<A: ObsHookableSourceTrait + ObsSourceTrait + Clone + 'static, B: ObsHookableSourceTrait + ObsSourceTrait + Clone + 'static> ObsHookableSourceTrait for ObsEitherSource<A, B>
Available on Windows only.
impl<A: ObsHookableSourceTrait + ObsSourceTrait + Clone + 'static, B: ObsHookableSourceTrait + ObsSourceTrait + Clone + 'static> ObsHookableSourceTrait for ObsEitherSource<A, B>
Available on Windows only.
fn source_specific_signals(&self) -> Arc<ObsHookableSourceSignals>
Source§impl<A, B> ObsObjectTrait<*mut obs_source> for ObsEitherSource<A, B>
impl<A, B> ObsObjectTrait<*mut obs_source> for ObsEitherSource<A, B>
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 update_settings(&self, settings: ObsData) -> Result<(), ObsError>
fn update_settings(&self, settings: ObsData) -> Result<(), ObsError>
Updates the settings of this output. Fails if active.
Source§fn as_ptr(&self) -> SmartPointerSendable<*mut obs_source>
fn as_ptr(&self) -> SmartPointerSendable<*mut obs_source>
Creates a new reference to the drop guard.
This is useful if you are using the underlying raw pointer, make sure to store it along the drop guard
§fn create_updater<'a, T>(&'a mut self) -> Result<T, ObsError>
fn create_updater<'a, T>(&'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<A, B> ObsSourceTrait for ObsEitherSource<A, B>
impl<A, B> ObsSourceTrait for ObsEitherSource<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for ObsEitherSource<A, B>
impl<A, B> RefUnwindSafe for ObsEitherSource<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for ObsEitherSource<A, B>
impl<A, B> Sync for ObsEitherSource<A, B>
impl<A, B> Unpin for ObsEitherSource<A, B>
impl<A, B> UnsafeUnpin for ObsEitherSource<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for ObsEitherSource<A, B>where
A: UnwindSafe,
B: 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