pub struct ToastQueue { /* private fields */ }Implementations§
Source§impl ToastQueue
impl ToastQueue
pub fn new() -> Self
pub fn items(&self) -> Signal<Vec<Toast>>
pub fn push( &self, kind: ToastKind, title: impl Into<String>, message: impl Into<String>, ttl: Duration, ) -> u64
pub fn info(&self, title: impl Into<String>, message: impl Into<String>) -> u64
pub fn success( &self, title: impl Into<String>, message: impl Into<String>, ) -> u64
pub fn warn(&self, title: impl Into<String>, message: impl Into<String>) -> u64
pub fn error(&self, title: impl Into<String>, message: impl Into<String>) -> u64
pub fn dismiss(&self, id: u64) -> bool
pub fn clear(&self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for ToastQueue
impl Clone for ToastQueue
Auto Trait Implementations§
impl !RefUnwindSafe for ToastQueue
impl !Send for ToastQueue
impl !Sync for ToastQueue
impl !UnwindSafe for ToastQueue
impl Freeze for ToastQueue
impl Unpin for ToastQueue
impl UnsafeUnpin for ToastQueue
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