pub enum AnimationCommand {
Pause,
Resume,
Cancel,
Seek(f32),
Finish,
}Expand description
A lifecycle command that can be sent to a runtime-managed animation.
Variants§
Pause
Pause a running animation.
Resume
Resume a paused animation.
Cancel
Cancel an animation.
Seek(f32)
Seek to normalized progress.
Finish
Move the animation to completion.
Trait Implementations§
Source§impl Clone for AnimationCommand
impl Clone for AnimationCommand
Source§fn clone(&self) -> AnimationCommand
fn clone(&self) -> AnimationCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AnimationCommand
Source§impl Debug for AnimationCommand
impl Debug for AnimationCommand
Source§impl PartialEq for AnimationCommand
impl PartialEq for AnimationCommand
Source§fn eq(&self, other: &AnimationCommand) -> bool
fn eq(&self, other: &AnimationCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnimationCommand
Auto Trait Implementations§
impl Freeze for AnimationCommand
impl RefUnwindSafe for AnimationCommand
impl Send for AnimationCommand
impl Sync for AnimationCommand
impl Unpin for AnimationCommand
impl UnsafeUnpin for AnimationCommand
impl UnwindSafe for AnimationCommand
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