pub struct SimpleNotification { /* private fields */ }
Expand description
Create a simple notification.
(Experimental: Windows Only)
A simple notification is a notification that is basic and exists for easy use and is guaranteed to mainly work cross-platform.
Implementations§
Source§impl SimpleNotification
impl SimpleNotification
Sourcepub fn new(title: String) -> SimpleNotification
pub fn new(title: String) -> SimpleNotification
Create a new SimpleNotification.
pub fn add_text(self, line: String) -> Self
pub fn set_text(self, text: Vec<String>) -> Self
Sourcepub fn set_app_logo(self, app_logo: String) -> Self
pub fn set_app_logo(self, app_logo: String) -> Self
Set the app logo. (Windows Only).
Sourcepub fn set_hero_image(self, hero_image: String) -> Self
pub fn set_hero_image(self, hero_image: String) -> Self
Set the hero image. (Windows Only).
Sourcepub fn set_app_id(self, app_id: String) -> Self
pub fn set_app_id(self, app_id: String) -> Self
Set the app id. (Windows Only).
Auto Trait Implementations§
impl Freeze for SimpleNotification
impl RefUnwindSafe for SimpleNotification
impl Send for SimpleNotification
impl Sync for SimpleNotification
impl Unpin for SimpleNotification
impl UnwindSafe for SimpleNotification
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