pub struct CMClock { /* private fields */ }Available on crate feature
cm only.Expand description
CMClock wrapper for synchronization clock
Represents a Core Media clock used for time synchronization. Available on macOS 13.0+.
Implementations§
Source§impl CMClock
impl CMClock
Sourcepub unsafe fn from_raw(ptr: *const c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *const c_void) -> Option<Self>
Adopts a +1 retained CMClockRef and returns None for null.
§Safety
A non-null ptr must be a live CMClockRef of the exact type carrying
one retain transferred to this wrapper. The caller must not release or
separately adopt that transferred retain.
Sourcepub unsafe fn from_raw_borrowed(ptr: *const c_void) -> Option<Self>
pub unsafe fn from_raw_borrowed(ptr: *const c_void) -> Option<Self>
Retains a +0 borrowed CMClockRef and returns an owned wrapper.
§Safety
A non-null ptr must be a live CMClockRef of the exact type for the
duration of the retain call.
Sourcepub fn host_time_clock() -> Self
pub fn host_time_clock() -> Self
Host-time master clock.
Trait Implementations§
impl Eq for CMClock
impl Send for CMClock
impl Sync for CMClock
Auto Trait Implementations§
impl Freeze for CMClock
impl RefUnwindSafe for CMClock
impl Unpin for CMClock
impl UnsafeUnpin for CMClock
impl UnwindSafe for CMClock
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