Enum amethyst_animation::ControlState [−][src]
pub enum ControlState {
Requested,
Deferred(Duration),
Running(Duration),
Paused(Duration),
Abort,
Done,
}State of animation
Variants
RequestedAnimation 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
AbortRequest termination of the animation
DoneAnimation is completed
Methods
impl ControlState[src]
impl ControlStatepub fn is_running(&self) -> bool[src]
pub fn is_running(&self) -> boolIs the state Running
pub fn is_paused(&self) -> bool[src]
pub fn is_paused(&self) -> boolIs the state Paused
Trait Implementations
impl Debug for ControlState[src]
impl Debug for ControlStatefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for ControlState[src]
impl Clone for ControlStatefn clone(&self) -> ControlState[src]
fn clone(&self) -> ControlStateReturns 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 ControlStatefn eq(&self, other: &ControlState) -> bool[src]
fn eq(&self, other: &ControlState) -> boolThis 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) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for ControlState
impl Send for ControlStateimpl Sync for ControlState
impl Sync for ControlState