Struct egui_toast::ToastOptions
source · pub struct ToastOptions {
pub show_icon: bool,
pub show_progress: bool,
/* private fields */
}
Fields§
§show_icon: bool
Whether the toast should include an icon.
show_progress: bool
Whether the toast should visualize the remaining time
Implementations§
source§impl ToastOptions
impl ToastOptions
sourcepub fn duration(self, duration: impl Into<Option<Duration>>) -> Self
pub fn duration(self, duration: impl Into<Option<Duration>>) -> Self
Set duration of the toast. None duration means the toast never expires.
sourcepub fn duration_in_millis(self, millis: u64) -> Self
pub fn duration_in_millis(self, millis: u64) -> Self
Set duration of the toast in milliseconds.
sourcepub fn duration_in_seconds(self, secs: f64) -> Self
pub fn duration_in_seconds(self, secs: f64) -> Self
Set duration of the toast in seconds.
sourcepub fn show_progress(self, show_progress: bool) -> Self
pub fn show_progress(self, show_progress: bool) -> Self
Visualize remaining time using a progress bar.
Trait Implementations§
source§impl Clone for ToastOptions
impl Clone for ToastOptions
source§fn clone(&self) -> ToastOptions
fn clone(&self) -> ToastOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ToastOptions
impl Default for ToastOptions
impl Copy for ToastOptions
Auto Trait Implementations§
impl Freeze for ToastOptions
impl RefUnwindSafe for ToastOptions
impl Send for ToastOptions
impl Sync for ToastOptions
impl Unpin for ToastOptions
impl UnwindSafe for ToastOptions
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