pub struct CFNotificationCenter(/* private fields */);Expand description
Safe wrapper around a retained Core Foundation CFNotificationCenter reference.
Implementations§
Source§impl CFNotificationCenter
impl CFNotificationCenter
Sourcepub fn from_raw(ptr: *mut c_void) -> Option<Self>
pub fn from_raw(ptr: *mut c_void) -> Option<Self>
Wraps a +1 retained CFNotificationCenter pointer and returns None for null.
Sourcepub unsafe fn from_raw_retained(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw_retained(ptr: *mut c_void) -> Option<Self>
Retains a +0 borrowed CFNotificationCenter pointer and wraps the resulting +1 reference.
§Safety
ptr must be NULL or a valid CFNotificationCenter pointer.
Sourcepub fn into_cf_type(self) -> CFType
pub fn into_cf_type(self) -> CFType
Consumes this wrapper and returns the erased CFType.
Source§impl CFNotificationCenter
impl CFNotificationCenter
Sourcepub fn distributed() -> Self
pub fn distributed() -> Self
Distributed notification center.
Trait Implementations§
Source§impl AsCFType for CFNotificationCenter
impl AsCFType for CFNotificationCenter
Source§impl Clone for CFNotificationCenter
impl Clone for CFNotificationCenter
Source§fn clone(&self) -> CFNotificationCenter
fn clone(&self) -> CFNotificationCenter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CFNotificationCenter
impl Debug for CFNotificationCenter
Source§impl Hash for CFNotificationCenter
impl Hash for CFNotificationCenter
Source§impl PartialEq for CFNotificationCenter
impl PartialEq for CFNotificationCenter
Source§fn eq(&self, other: &CFNotificationCenter) -> bool
fn eq(&self, other: &CFNotificationCenter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CFNotificationCenter
impl StructuralPartialEq for CFNotificationCenter
Auto Trait Implementations§
impl Freeze for CFNotificationCenter
impl RefUnwindSafe for CFNotificationCenter
impl !Send for CFNotificationCenter
impl !Sync for CFNotificationCenter
impl Unpin for CFNotificationCenter
impl UnsafeUnpin for CFNotificationCenter
impl UnwindSafe for CFNotificationCenter
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