pub struct ObsSourceRef { /* private fields */ }
Implementations§
Source§impl ObsSourceRef
impl ObsSourceRef
pub async fn new<T: Into<ObsString> + Sync + Send, K: Into<ObsString> + Sync + Send>( id: T, name: K, settings: Option<ObsData>, hotkey_data: Option<ObsData>, runtime: ObsRuntime, ) -> Result<Self, ObsError>
pub fn settings(&self) -> &ImmutableObsData
pub fn hotkey_data(&self) -> &ImmutableObsData
pub fn name(&self) -> String
pub fn id(&self) -> String
pub fn signal_manager(&self) -> Arc<ObsSourceSignals>
Trait Implementations§
Source§impl Clone for ObsSourceRef
impl Clone for ObsSourceRef
Source§fn clone(&self) -> ObsSourceRef
fn clone(&self) -> ObsSourceRef
Returns a copy 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 ObsPropertyObject for ObsSourceRef
impl ObsPropertyObject for ObsSourceRef
Source§fn get_properties<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ObsProperty>, ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_properties<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ObsProperty>, ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the properties of the object
fn get_properties_by_id<'life0, 'async_trait, T>( id: T, runtime: &'life0 ObsRuntime, ) -> Pin<Box<dyn Future<Output = Result<Vec<ObsProperty>, ObsError>> + Send + 'async_trait>>
Source§impl ObsPropertyObjectPrivate for ObsSourceRef
impl ObsPropertyObjectPrivate for ObsSourceRef
fn get_properties_raw<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Sendable<*mut obs_properties_t>, ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_properties_by_id_raw<'async_trait, T>( id: T, runtime: ObsRuntime, ) -> Pin<Box<dyn Future<Output = Result<Sendable<*mut obs_properties_t>, ObsError>> + Send + 'async_trait>>
Source§impl ObsUpdatable for ObsSourceRef
impl ObsUpdatable for ObsSourceRef
fn update_raw<'life0, 'async_trait>(
&'life0 mut self,
data: ObsData,
) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn reset_and_update_raw<'life0, 'async_trait>(
&'life0 mut self,
data: ObsData,
) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn runtime(&self) -> ObsRuntime
fn get_settings<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ImmutableObsData, ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn create_updater<'a, 'async_trait, T>(
&'a mut self,
) -> Pin<Box<dyn Future<Output = Result<T, ObsError>> + Send + 'async_trait>>
fn create_updater<'a, 'async_trait, T>( &'a mut self, ) -> Pin<Box<dyn Future<Output = Result<T, ObsError>> + Send + 'async_trait>>
Updates the object with the current settings.
For examples please take a look at the Github repository.
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