pub enum Motion {
Animated,
Static,
}Expand description
Whether a countdown redraws itself or is printed once.
Variants§
Animated
Redraw every tick in a live region.
Static
Print once; the wait is silent. For logs, pipes and reduced motion.
Implementations§
Source§impl Motion
impl Motion
Sourcepub fn for_target(target: &RenderTarget, policy: &AccessibilityPolicy) -> Motion
pub fn for_target(target: &RenderTarget, policy: &AccessibilityPolicy) -> Motion
Static for a non-interactive target or a policy
asking for reduced motion or no animation; otherwise animated.
Trait Implementations§
impl Copy for Motion
impl Eq for Motion
impl StructuralPartialEq for Motion
Auto Trait Implementations§
impl Freeze for Motion
impl RefUnwindSafe for Motion
impl Send for Motion
impl Sync for Motion
impl Unpin for Motion
impl UnsafeUnpin for Motion
impl UnwindSafe for Motion
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.