pub struct NotificationRef<'a>(/* private fields */);
Expand description
Reference to a deserialized Notification.
Implementations§
Source§impl<'a> NotificationRef<'a>
impl<'a> NotificationRef<'a>
Sourcepub fn handler_id(&self) -> Result<&'a str>
pub fn handler_id(&self) -> Result<&'a str>
Getter for the handler_id
field.
Sourcepub fn event(&self) -> Result<Event>
pub fn event(&self) -> Result<Event>
Getter for the event
field.
Trait Implementations§
Source§impl<'a> Clone for NotificationRef<'a>
impl<'a> Clone for NotificationRef<'a>
Source§fn clone(&self) -> NotificationRef<'a>
fn clone(&self) -> NotificationRef<'a>
Returns a copy 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<'a> Debug for NotificationRef<'a>
impl<'a> Debug for NotificationRef<'a>
Source§impl<'a> ReadAsRoot<'a> for NotificationRef<'a>
impl<'a> ReadAsRoot<'a> for NotificationRef<'a>
Source§impl<'a> TryFrom<NotificationRef<'a>> for Notification
impl<'a> TryFrom<NotificationRef<'a>> for Notification
impl<'a> Copy for NotificationRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for NotificationRef<'a>
impl<'a> RefUnwindSafe for NotificationRef<'a>
impl<'a> Send for NotificationRef<'a>
impl<'a> Sync for NotificationRef<'a>
impl<'a> Unpin for NotificationRef<'a>
impl<'a> UnwindSafe for NotificationRef<'a>
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