pub struct Notification { /* private fields */ }Implementations§
Source§impl Notification
impl Notification
pub fn new<S: Into<String>>(title: S, message: S) -> Self
pub fn with_subtitle<S: Into<String>>(self, subtitle: S) -> Self
pub fn with_sound<S: Into<String>>(self, sound: S) -> Self
pub fn title(&self) -> &str
pub fn message(&self) -> &str
pub fn subtitle(&self) -> Option<&str>
pub fn sound(&self) -> Option<&str>
pub fn show(&self) -> bool
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync 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