pub enum MotionSequenceStepState {
Pending,
Active,
Immediate,
Completed,
Cancelled,
}Expand description
Sequence-level state for one sampled step.
Variants§
Pending
The step has not reached its start time yet.
Active
The step is active and should keep requesting frames.
Immediate
The step completed immediately due to policy or reduced motion.
Completed
The step reached its final state.
Cancelled
The step was cancelled before reaching its final state.
Implementations§
Source§impl MotionSequenceStepState
impl MotionSequenceStepState
Sourcepub const fn needs_frame_for_sequence(self) -> bool
pub const fn needs_frame_for_sequence(self) -> bool
Returns whether this state keeps the sequence frame demand active.
Sourcepub const fn is_terminal(self) -> bool
pub const fn is_terminal(self) -> bool
Returns whether this state is terminal.
Sourcepub const fn reached_final_state(self) -> bool
pub const fn reached_final_state(self) -> bool
Returns whether this state reached the final semantic state.
Trait Implementations§
Source§impl Clone for MotionSequenceStepState
impl Clone for MotionSequenceStepState
impl Copy for MotionSequenceStepState
Source§impl Debug for MotionSequenceStepState
impl Debug for MotionSequenceStepState
impl Eq for MotionSequenceStepState
Source§impl PartialEq for MotionSequenceStepState
impl PartialEq for MotionSequenceStepState
impl StructuralPartialEq for MotionSequenceStepState
Auto Trait Implementations§
impl Freeze for MotionSequenceStepState
impl RefUnwindSafe for MotionSequenceStepState
impl Send for MotionSequenceStepState
impl Sync for MotionSequenceStepState
impl Unpin for MotionSequenceStepState
impl UnsafeUnpin for MotionSequenceStepState
impl UnwindSafe for MotionSequenceStepState
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