pub struct Notification(/* private fields */);Expand description
An Objective-C notification object.
C++ equivalent: NS::Notification
Implementations§
Source§impl Notification
impl Notification
Sourcepub fn name(&self) -> *mut String
pub fn name(&self) -> *mut String
Get the notification name.
C++ equivalent: NS::String* name() const
Sourcepub fn object(&self) -> *mut Object
pub fn object(&self) -> *mut Object
Get the notification object.
C++ equivalent: NS::Object* object() const
Sourcepub fn user_info(&self) -> *mut Dictionary
pub fn user_info(&self) -> *mut Dictionary
Get the notification user info dictionary.
C++ equivalent: NS::Dictionary* userInfo() const
Trait Implementations§
Source§impl Clone for Notification
impl Clone for Notification
Source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
Returns a duplicate of the value. Read more
1.0.0 · 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 Notification
impl Debug for Notification
Source§impl Referencing for Notification
impl Referencing for Notification
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> UInteger
fn retain_count(&self) -> UInteger
Get the retain count of the object. Read more
impl Send for Notification
impl Sync for Notification
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
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