#[non_exhaustive]pub struct MotionTokens {
pub spinner_delay: f32,
pub spinner_min: f32,
pub spinner_turn: f32,
pub progress_travel: f32,
pub skeleton_shimmer: f32,
pub pulse_period: f32,
pub pulse_count: u32,
pub toast_slide: f32,
pub submenu_delay: f32,
}Expand description
Times of motion, in seconds (see motion).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.spinner_delay: f32Nothing shows before work ran this long (motion.spinner.delay).
spinner_min: f32A busy indicator, once shown, stays this long
(motion.spinner.min).
spinner_turn: f32One turn of a spinner (motion.spinner.turn).
progress_travel: f32An indeterminate bar’s segment crossing the track
(motion.progress.travel).
skeleton_shimmer: f32A skeleton’s shimmer crossing it (motion.skeleton.shimmer).
pulse_period: f32One pulse of a busy LED or a mark calling attention
(motion.pulse.period).
pulse_count: u32How many times a mark calling attention pulses
(motion.pulse.count).
toast_slide: f32A toast sliding in from its corner’s side, and out again
(motion.toast.slide; none under reduced motion).
The pointer rests this long on a submenu item before its submenu
opens (motion.submenu.delay).
Trait Implementations§
Source§impl Clone for MotionTokens
impl Clone for MotionTokens
Source§fn clone(&self) -> MotionTokens
fn clone(&self) -> MotionTokens
Returns a duplicate 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 Debug for MotionTokens
impl Debug for MotionTokens
Source§impl PartialEq for MotionTokens
impl PartialEq for MotionTokens
impl StructuralPartialEq for MotionTokens
Auto Trait Implementations§
impl Freeze for MotionTokens
impl RefUnwindSafe for MotionTokens
impl Send for MotionTokens
impl Sync for MotionTokens
impl Unpin for MotionTokens
impl UnsafeUnpin for MotionTokens
impl UnwindSafe for MotionTokens
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