pub enum MotionRunState {
Immediate,
Active,
Completed,
Cancelled,
}Expand description
Runtime state for sampled motion.
Variants§
Immediate
The motion spec completed immediately.
Active
The motion run is still active.
Completed
The motion run reached its final state.
Cancelled
The motion run was cancelled before reaching its final state.
Implementations§
Source§impl MotionRunState
impl MotionRunState
Sourcepub const fn is_active(self) -> bool
pub const fn is_active(self) -> bool
Returns whether callers should continue requesting animation frames.
Sourcepub const fn is_terminal(self) -> bool
pub const fn is_terminal(self) -> bool
Returns whether the timeline no longer needs animation frames.
Sourcepub const fn reached_final_state(self) -> bool
pub const fn reached_final_state(self) -> bool
Returns whether the semantic final state has been reached.
Trait Implementations§
Source§impl Clone for MotionRunState
impl Clone for MotionRunState
impl Copy for MotionRunState
Source§impl Debug for MotionRunState
impl Debug for MotionRunState
impl Eq for MotionRunState
Source§impl PartialEq for MotionRunState
impl PartialEq for MotionRunState
impl StructuralPartialEq for MotionRunState
Auto Trait Implementations§
impl Freeze for MotionRunState
impl RefUnwindSafe for MotionRunState
impl Send for MotionRunState
impl Sync for MotionRunState
impl Unpin for MotionRunState
impl UnsafeUnpin for MotionRunState
impl UnwindSafe for MotionRunState
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