pub struct Toast { /* private fields */ }
Expand description

Single notification or toast

Implementations

Creates new basic toast, can be closed by default.

Creates new success toast, can be closed by default.

Creates new info toast, can be closed by default.

Creates new warning toast, can be closed by default.

Creates new error toast, can not be closed by default.

Set the options with a ToastOptions

Change the level of the toast

Can use close the toast?

In what time should the toast expire? Set to None for no expiry.

Toast’s box height

Toast’s box width

Dismiss this toast

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.