pub enum AppProgress {
None,
Indeterminate,
Value(f64),
Paused(f64),
Error(f64),
}Expand description
A progress indicator on the app’s Dock or taskbar icon (Toolkit::set_app_progress,
docs/status-item.md).
Variants§
None
No indicator.
Indeterminate
Work of unknown length.
Value(f64)
A fraction done, 0.0 to 1.0.
Paused(f64)
A fraction done, paused. Platforms without a paused state show Value.
Error(f64)
A fraction done when the work failed. Platforms without an error state show Value.
Trait Implementations§
Source§impl Clone for AppProgress
impl Clone for AppProgress
Source§fn clone(&self) -> AppProgress
fn clone(&self) -> AppProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AppProgress
Source§impl Debug for AppProgress
impl Debug for AppProgress
Source§impl Default for AppProgress
impl Default for AppProgress
Source§fn default() -> AppProgress
fn default() -> AppProgress
Returns the “default value” for a type. Read more
Source§impl PartialEq for AppProgress
impl PartialEq for AppProgress
impl StructuralPartialEq for AppProgress
Auto Trait Implementations§
impl Freeze for AppProgress
impl RefUnwindSafe for AppProgress
impl Send for AppProgress
impl Sync for AppProgress
impl Unpin for AppProgress
impl UnsafeUnpin for AppProgress
impl UnwindSafe for AppProgress
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