pub struct ObsSourceRef { /* private fields */ }Implementations§
Source§impl ObsSourceRef
impl ObsSourceRef
pub fn new_from_info( info: SourceInfo, runtime: ObsRuntime, ) -> Result<Self, ObsError>
pub fn new<T: Into<ObsString> + Sync + Send, K: Into<ObsString> + Sync + Send>( id: T, name: K, settings: Option<ImmutableObsData>, hotkey_data: Option<ImmutableObsData>, runtime: ObsRuntime, ) -> Result<Self, ObsError>
Trait Implementations§
Source§impl Clone for ObsSourceRef
impl Clone for ObsSourceRef
Source§fn clone(&self) -> ObsSourceRef
fn clone(&self) -> ObsSourceRef
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 Debug for ObsSourceRef
impl Debug for ObsSourceRef
Source§impl ObsObjectTrait<*mut obs_source> for ObsSourceRef
impl ObsObjectTrait<*mut obs_source> for ObsSourceRef
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_t>
fn as_ptr(&self) -> SmartPointerSendable<*mut obs_source_t>
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
Source§fn create_updater<'a, T: ObsObjectUpdater<'a, K, ToUpdate = Self> + Send + Sync>(
&'a mut self,
) -> Result<T, ObsError>
fn create_updater<'a, T: ObsObjectUpdater<'a, K, 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 ObsSourceTrait for ObsSourceRef
impl ObsSourceTrait for ObsSourceRef
fn signals(&self) -> &Arc<ObsSourceSignals>
fn get_active_filters(&self) -> Result<Vec<ObsFilterGuardPair>, ObsError>
fn apply_filter(&self, filter: &ObsFilterRef) -> Result<(), ObsError>
Auto Trait Implementations§
impl Freeze for ObsSourceRef
impl !RefUnwindSafe for ObsSourceRef
impl Send for ObsSourceRef
impl Sync for ObsSourceRef
impl Unpin for ObsSourceRef
impl !UnwindSafe for ObsSourceRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, K> ObsObjectClone<K> for T
impl<T, K> ObsObjectClone<K> for T
fn clone_box(&self) -> Box<dyn ObsObjectTrait<K>>
Source§impl<K> ObsPropertyObject for Kwhere
K: ObsSourceTrait,
impl<K> ObsPropertyObject for Kwhere
K: ObsSourceTrait,
Source§fn get_properties(&self) -> Result<HashMap<String, ObsProperty>, ObsError>
fn get_properties(&self) -> Result<HashMap<String, ObsProperty>, ObsError>
Returns the properties of the object