pub struct ImmutableObsData { /* private fields */ }
Expand description
Immutable wrapper around obs_data_t to be prevent modification and to be used in creation of other objects. This should not be updated directly using the pointer, but instead through the corresponding update methods on the holder of this data.
Implementations§
Source§impl ImmutableObsData
impl ImmutableObsData
pub async fn new(runtime: &ObsRuntime) -> Result<Self, ObsError>
pub async fn from_raw( data: Sendable<*mut obs_data_t>, runtime: ObsRuntime, ) -> Self
pub async fn to_mutable(&self) -> Result<ObsData, ObsError>
pub fn as_ptr(&self) -> Sendable<*mut obs_data_t>
Trait Implementations§
Source§impl Clone for ImmutableObsData
impl Clone for ImmutableObsData
Source§fn clone(&self) -> ImmutableObsData
fn clone(&self) -> ImmutableObsData
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 ImmutableObsData
impl Debug for ImmutableObsData
Source§impl Drop for ImmutableObsData
impl Drop for ImmutableObsData
Auto Trait Implementations§
impl Freeze for ImmutableObsData
impl !RefUnwindSafe for ImmutableObsData
impl Send for ImmutableObsData
impl Sync for ImmutableObsData
impl Unpin for ImmutableObsData
impl !UnwindSafe for ImmutableObsData
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