aura_anim_core/runtime/command.rs
1/// A lifecycle command that can be sent to a runtime-managed animation.
2#[derive(Debug, Clone, Copy, PartialEq)]
3pub enum AnimationCommand {
4 /// Pause a running animation.
5 Pause,
6 /// Resume a paused animation.
7 Resume,
8 /// Cancel an animation.
9 Cancel,
10 /// Seek to normalized progress.
11 Seek(f32),
12 /// Move the animation to completion.
13 Finish,
14}