pub struct CMTimebase(/* private fields */);Implementations§
Source§impl CMTimebase
impl CMTimebase
pub fn new_with_source_clock(source_clock: &CMClock) -> Result<Self, OSStatus>
pub fn new_with_source_timebase( source_timebase: &CMTimebase, ) -> Result<Self, OSStatus>
pub fn copy_source_timebase(&self) -> Option<Self>
pub fn copy_source_clock(&self) -> Option<CMClock>
pub fn copy_source(&self) -> Option<CMClockOrTimebase>
pub fn copy_ultimate_source_clock(&self) -> Option<CMClock>
pub fn set_source_clock( &self, new_source_clock: &CMClock, ) -> Result<(), OSStatus>
pub fn set_source_timebase( &self, new_source_timebase: &CMTimebase, ) -> Result<(), OSStatus>
pub fn get_time(&self) -> CMTime
pub fn get_time_with_time_scale( &self, time_scale: CMTimeScale, rounding_method: CMTimeRoundingMethod, ) -> CMTime
pub fn set_time(&self, time: CMTime) -> Result<(), OSStatus>
pub fn set_anchor_time( &self, timebase_time: CMTime, immediate_source_time: CMTime, ) -> Result<(), OSStatus>
pub fn get_rate(&self) -> f64
pub fn get_time_and_rate(&self) -> Result<(CMTime, f64), OSStatus>
pub fn set_rate(&self, rate: f64) -> Result<(), OSStatus>
pub fn set_rate_and_anchor_time( &self, rate: f64, timebase_time: CMTime, immediate_source_time: CMTime, ) -> Result<(), OSStatus>
pub fn get_effective_rate(&self) -> f64
pub fn add_timer( &self, timer: &CFRunLoopTimer, run_loop: &CFRunLoop, ) -> Result<(), OSStatus>
pub fn remove_timer(&self, timer: &CFRunLoopTimer) -> Result<(), OSStatus>
pub fn set_timer_next_fire_time( &self, timer: &CFRunLoopTimer, fire_time: CMTime, flags: u32, ) -> Result<(), OSStatus>
pub fn set_timer_to_fire_immediately( &self, timer: &CFRunLoopTimer, ) -> Result<(), OSStatus>
pub fn notification_barrier(&self) -> Result<(), OSStatus>
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 PartialEq for CMTimebase
impl PartialEq for CMTimebase
Source§impl TCFType for CMTimebase
impl TCFType for CMTimebase
Source§type Ref = *mut OpaqueCMTimebase
type Ref = *mut OpaqueCMTimebase
The reference type wrapped inside this type.
Source§fn as_concrete_TypeRef(&self) -> CMTimebaseRef
fn as_concrete_TypeRef(&self) -> CMTimebaseRef
Returns the object as its concrete
TypeRef.Source§unsafe fn wrap_under_get_rule(reference: CMTimebaseRef) -> Self
unsafe fn wrap_under_get_rule(reference: CMTimebaseRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef subclass. Use this
when following Core Foundation’s “Get Rule”. The reference count is bumped.Source§fn as_CFTypeRef(&self) -> CFTypeRef
fn as_CFTypeRef(&self) -> CFTypeRef
Returns the object as a raw
CFTypeRef. The reference count is not adjusted.Source§unsafe fn wrap_under_create_rule(reference: CMTimebaseRef) -> Self
unsafe fn wrap_under_create_rule(reference: CMTimebaseRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef subclass. Use this
when following Core Foundation’s “Create Rule”. The reference count is not bumped.Source§fn as_CFType(&self) -> CFType
fn as_CFType(&self) -> CFType
Returns the object as a wrapped
CFType. The reference count is incremented by one.Source§fn into_CFType(self) -> CFTypewhere
Self: Sized,
fn into_CFType(self) -> CFTypewhere
Self: Sized,
Returns the object as a wrapped
CFType. Consumes self and avoids changing the reference
count.Source§fn retain_count(&self) -> isize
fn retain_count(&self) -> isize
Returns the reference count of the object. It is unwise to do anything other than test
whether the return value of this method is greater than zero.
Source§fn instance_of<OtherCFType>(&self) -> boolwhere
OtherCFType: TCFType,
fn instance_of<OtherCFType>(&self) -> boolwhere
OtherCFType: TCFType,
Returns
true if this value is an instance of another type.Source§impl<'a> ToVoid<CMTimebase> for &'a CMTimebase
impl<'a> ToVoid<CMTimebase> for &'a CMTimebase
Source§impl ToVoid<CMTimebase> for CMTimebaseRef
impl ToVoid<CMTimebase> for CMTimebaseRef
Source§impl ToVoid<CMTimebase> for CMTimebase
impl ToVoid<CMTimebase> for CMTimebase
impl ConcreteCFType for CMTimebase
impl Eq for CMTimebase
Auto Trait Implementations§
impl Freeze for CMTimebase
impl RefUnwindSafe for CMTimebase
impl !Send for CMTimebase
impl !Sync for CMTimebase
impl Unpin 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