pub struct CMTimebase { /* private fields */ }Available on crate feature
cm only.Expand description
Owned wrapper around CMTimebaseRef.
Implementations§
Source§impl CMTimebase
impl CMTimebase
Sourcepub fn with_master_clock(master_clock: &CMClock) -> Result<Self, i32>
pub fn with_master_clock(master_clock: &CMClock) -> Result<Self, i32>
Create a timebase that uses master_clock as its time source.
Sourcepub fn from_raw(ptr: *const c_void) -> Option<Self>
pub fn from_raw(ptr: *const c_void) -> Option<Self>
Wraps a +1 retained CMTimebaseRef and returns None for null.
Sourcepub fn master_clock(&self) -> Option<CMClock>
pub fn master_clock(&self) -> Option<CMClock>
Copy the master clock.
Trait Implementations§
Source§impl Clone for CMTimebase
impl Clone for CMTimebase
Source§impl Debug for CMTimebase
impl Debug for CMTimebase
Source§impl Drop for CMTimebase
impl Drop for CMTimebase
Source§impl Hash for CMTimebase
impl Hash for CMTimebase
Source§impl PartialEq for CMTimebase
impl PartialEq for CMTimebase
impl Eq for CMTimebase
impl Send for CMTimebase
impl Sync for CMTimebase
Auto Trait Implementations§
impl Freeze for CMTimebase
impl RefUnwindSafe for CMTimebase
impl Unpin for CMTimebase
impl UnsafeUnpin for CMTimebase
impl UnwindSafe for CMTimebase
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