pub struct Busy {
pub id: Id,
pub since: f64,
pub delay: Option<f64>,
pub min: Option<f64>,
}Expand description
A delayed busy indicator for work that started at since (motion
clock seconds): shown after the delay, kept for the minimum once
shown. Its state is kept per id.
Fields§
§id: Id§since: f64§delay: Option<f64>Seconds before showing (motion.spinner.delay by default).
min: Option<f64>Seconds shown at least (motion.spinner.min by default).
Implementations§
Trait Implementations§
impl Copy for Busy
impl StructuralPartialEq for Busy
Auto Trait Implementations§
impl Freeze for Busy
impl RefUnwindSafe for Busy
impl Send for Busy
impl Sync for Busy
impl Unpin for Busy
impl UnsafeUnpin for Busy
impl UnwindSafe for Busy
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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