pub struct BackgroundWork {
pub title: String,
pub progress: Option<f32>,
}Expand description
What the person is shown about work that runs off screen.
Fields§
§title: StringWhat the work does, as the person reads it: “Downloading the models”.
progress: Option<f32>How much of it is done, from 0 to 1, when the work knows.
Trait Implementations§
Source§impl Clone for BackgroundWork
impl Clone for BackgroundWork
Source§impl Debug for BackgroundWork
impl Debug for BackgroundWork
Source§impl PartialEq for BackgroundWork
impl PartialEq for BackgroundWork
impl StructuralPartialEq for BackgroundWork
Auto Trait Implementations§
impl Freeze for BackgroundWork
impl RefUnwindSafe for BackgroundWork
impl Send for BackgroundWork
impl Sync for BackgroundWork
impl Unpin for BackgroundWork
impl UnsafeUnpin for BackgroundWork
impl UnwindSafe for BackgroundWork
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