pub struct ObsSourceRef { /* private fields */ }Implementations§
Source§impl ObsSourceRef
impl ObsSourceRef
pub 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>
pub fn as_ptr(&self) -> *mut obs_source_t
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 Hash for ObsSourceRef
impl Hash for ObsSourceRef
Source§impl ObsPropertyObject for ObsSourceRef
impl ObsPropertyObject for ObsSourceRef
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
fn get_properties_by_id<T: Into<ObsString> + Sync + Send>( id: T, runtime: &ObsRuntime, ) -> Result<HashMap<String, ObsProperty>, ObsError>
Source§impl ObsPropertyObjectPrivate for ObsSourceRef
impl ObsPropertyObjectPrivate for ObsSourceRef
fn get_properties_raw( &self, ) -> Result<Sendable<*mut obs_properties_t>, ObsError>
fn get_properties_by_id_raw<T: Into<ObsString> + Sync + Send>( id: T, runtime: ObsRuntime, ) -> Result<Sendable<*mut obs_properties_t>, ObsError>
Source§impl ObsUpdatable for ObsSourceRef
impl ObsUpdatable for ObsSourceRef
fn update_raw(&mut self, data: ObsData) -> Result<(), ObsError>
fn reset_and_update_raw(&mut self, data: ObsData) -> Result<(), ObsError>
fn runtime(&self) -> ObsRuntime
fn get_settings(&self) -> Result<ImmutableObsData, ObsError>
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 PartialEq for ObsSourceRef
impl PartialEq for ObsSourceRef
impl Eq for ObsSourceRef
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