pub struct Notifications { /* private fields */ }Expand description
The notifications, from cx.notifications(). A clone is cheap and
shares the one server.
Implementations§
Source§impl Notifications
impl Notifications
Sourcepub fn list(&self) -> ReadSignal<Vec<Notification>>
pub fn list(&self) -> ReadSignal<Vec<Notification>>
Every notification kept, oldest first: the history, from arrival until it is dismissed, picked or closed by its app. A replaced one keeps its place.
Sourcepub fn popups(&self) -> ReadSignal<Vec<Notification>>
pub fn popups(&self) -> ReadSignal<Vec<Notification>>
The notifications still showing as popups, newest first. Each stays
for its timeout, and until dismissed when that is
Timeout::Never or it is Urgency::Critical. An expired one
stays in list, unless it is transient.
Sourcepub fn dismiss(&self, id: u32)
pub fn dismiss(&self, id: u32)
Takes notification id away, as the user’s close button does, and
tells its app. An unknown id is ignored.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Notifications
impl !Send for Notifications
impl !Sync for Notifications
impl !UnwindSafe for Notifications
impl Forget for Notifications
impl Freeze for Notifications
impl Move for Notifications
impl Unpin for Notifications
impl UnsafeUnpin for Notifications
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