pub struct ToastBuilder<'a> { /* private fields */ }Expand description
Builder for custom toast notifications
Implementations§
Source§impl ToastBuilder<'_>
impl ToastBuilder<'_>
Sourcepub fn variant(self, variant: ToastVariant) -> Self
pub fn variant(self, variant: ToastVariant) -> Self
Set the toast variant
Sourcepub fn destructive(self) -> Self
pub fn destructive(self) -> Self
Make this a destructive toast
Sourcepub const fn dismissible(self, dismissible: bool) -> Self
pub const fn dismissible(self, dismissible: bool) -> Self
Set whether the toast can be manually dismissed
Auto Trait Implementations§
impl<'a> Freeze for ToastBuilder<'a>
impl<'a> RefUnwindSafe for ToastBuilder<'a>
impl<'a> Send for ToastBuilder<'a>
impl<'a> Sync for ToastBuilder<'a>
impl<'a> Unpin for ToastBuilder<'a>
impl<'a> UnsafeUnpin for ToastBuilder<'a>
impl<'a> !UnwindSafe for ToastBuilder<'a>
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