pub struct Toast;Expand description
Global reactive notification queue (Sonner-style).
Implementations§
Source§impl Toast
impl Toast
pub fn success(title: impl Into<String>) -> u64
pub fn error(title: impl Into<String>) -> u64
pub fn warning(title: impl Into<String>) -> u64
pub fn info(title: impl Into<String>) -> u64
pub fn push( kind: ToastKind, title: impl Into<String>, description: Option<String>, ) -> u64
pub fn dismiss(id: u64)
pub fn get_all() -> Vec<ToastMessage>
pub fn clear()
Auto Trait Implementations§
impl Forget for Toast
impl Freeze for Toast
impl Move for Toast
impl RefUnwindSafe for Toast
impl Send for Toast
impl Sync for Toast
impl Unpin for Toast
impl UnsafeUnpin for Toast
impl UnwindSafe for Toast
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