pub struct NotificationHandle { /* private fields */ }Implementations§
Source§impl NotificationHandle
impl NotificationHandle
pub fn new( show: impl Fn(&Notification) -> Result<(), NotificationError> + Send + Sync + 'static, ) -> Self
pub fn show(&self, notification: &Notification) -> Result<(), NotificationError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NotificationHandle
impl !UnwindSafe for NotificationHandle
impl Forget for NotificationHandle
impl Freeze for NotificationHandle
impl Move for NotificationHandle
impl Send for NotificationHandle
impl Sync for NotificationHandle
impl Unpin for NotificationHandle
impl UnsafeUnpin for NotificationHandle
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