Enum amethyst_animation::ControlState [−][src]
pub enum ControlState { Requested, Deferred(Duration), Running(Duration), Paused(Duration), Abort, Done, }
State of animation
Variants
Requested
Animation was just requested, not started yet
Deferred(Duration)
Deferred start
Running(Duration)
Animation is running, contains last animation tick, and accumulated duration
Paused(Duration)
Animation is paused at the accumulated duration
Abort
Request termination of the animation
Done
Animation is completed
Methods
impl ControlState
[src]
impl ControlState
pub fn is_running(&self) -> bool
[src]
pub fn is_running(&self) -> bool
Is the state Running
pub fn is_paused(&self) -> bool
[src]
pub fn is_paused(&self) -> bool
Is the state Paused
Trait Implementations
impl Debug for ControlState
[src]
impl Debug for ControlState
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ControlState
[src]
impl Clone for ControlState
fn clone(&self) -> ControlState
[src]
fn clone(&self) -> ControlState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for ControlState
[src]
impl PartialEq for ControlState
fn eq(&self, other: &ControlState) -> bool
[src]
fn eq(&self, other: &ControlState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ControlState) -> bool
[src]
fn ne(&self, other: &ControlState) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for ControlState
impl Send for ControlState
impl Sync for ControlState
impl Sync for ControlState