pub struct CFTimer(/* private fields */);Implementations§
Source§impl CFTimer
impl CFTimer
pub fn from_raw(ptr: *mut c_void) -> Option<Self>
Sourcepub unsafe fn from_raw_retained(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw_retained(ptr: *mut c_void) -> Option<Self>
Retain a borrowed pointer before wrapping it.
§Safety
ptr must be NULL or a valid pointer of the expected Core Foundation type.
pub const fn as_ptr(&self) -> *mut c_void
pub fn type_id() -> usize
pub fn into_cf_type(self) -> CFType
Trait Implementations§
impl Eq for CFTimer
impl StructuralPartialEq for CFTimer
Auto Trait Implementations§
impl Freeze for CFTimer
impl RefUnwindSafe for CFTimer
impl !Send for CFTimer
impl !Sync for CFTimer
impl Unpin for CFTimer
impl UnsafeUnpin for CFTimer
impl UnwindSafe for CFTimer
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