pub struct UseNotificationsHandle { /* private fields */ }Implementations§
Source§impl UseNotificationsHandle
impl UseNotificationsHandle
Sourcepub fn info(&self, title: impl Into<String>, message: impl Into<String>)
pub fn info(&self, title: impl Into<String>, message: impl Into<String>)
Show an info notification
Sourcepub fn success(&self, title: impl Into<String>, message: impl Into<String>)
pub fn success(&self, title: impl Into<String>, message: impl Into<String>)
Show a success notification
Sourcepub fn warning(&self, title: impl Into<String>, message: impl Into<String>)
pub fn warning(&self, title: impl Into<String>, message: impl Into<String>)
Show a warning notification
Sourcepub fn error(&self, title: impl Into<String>, message: impl Into<String>)
pub fn error(&self, title: impl Into<String>, message: impl Into<String>)
Show an error notification
Sourcepub fn show(&self, notification: Notification)
pub fn show(&self, notification: Notification)
Show a custom notification
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for UseNotificationsHandle
impl !RefUnwindSafe for UseNotificationsHandle
impl !Send for UseNotificationsHandle
impl !Sync for UseNotificationsHandle
impl Unpin for UseNotificationsHandle
impl !UnwindSafe for UseNotificationsHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.