pub struct NotificationQueue { /* private fields */ }Expand description
A queue of notifications to display
Implementations§
Source§impl NotificationQueue
impl NotificationQueue
Sourcepub fn push(&mut self, notification: Notification)
pub fn push(&mut self, notification: Notification)
Add a notification to the queue
Sourcepub fn remove_expired(&mut self)
pub fn remove_expired(&mut self)
Remove expired notifications
Sourcepub fn current(&self) -> Option<&Notification>
pub fn current(&self) -> Option<&Notification>
Get the current notification to display (if any)
Trait Implementations§
Source§impl Debug for NotificationQueue
impl Debug for NotificationQueue
Source§impl Default for NotificationQueue
impl Default for NotificationQueue
Source§fn default() -> NotificationQueue
fn default() -> NotificationQueue
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NotificationQueue
impl RefUnwindSafe for NotificationQueue
impl Send for NotificationQueue
impl Sync for NotificationQueue
impl Unpin for NotificationQueue
impl UnwindSafe for NotificationQueue
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more