pub struct Loading {
pub label: String,
pub frame: usize,
pub started: Instant,
pub folders: Option<usize>,
}Expand description
Visual state of a background scan in progress.
Fields§
§label: StringHuman label of the cache being scanned — shown in the spinner modal.
frame: usizeSpinner animation frame index into SPINNER_FRAMES.
started: InstantWhen the scan started; used to render elapsed time when no per-task progress signal is available.
folders: Option<usize>Some(n) when the worker streams a folder-count via ScanProgress
(the LoadSeeds startup scan). None for spinners that don’t carry a
progress signal, in which case the view falls back to elapsed time.
Implementations§
Auto Trait Implementations§
impl Freeze for Loading
impl RefUnwindSafe for Loading
impl Send for Loading
impl Sync for Loading
impl Unpin for Loading
impl UnsafeUnpin for Loading
impl UnwindSafe for Loading
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more