pub enum TransitionPhase {
Settled,
MoveStart,
Moving,
MoveEnd,
}Expand description
Where in a camera motion transition the current frame sits.
This is a strict state machine updated every frame by the view system.
§State transitions
| Previous | Current motion | Next |
|---|---|---|
Settled | Stable | Settled |
Settled | Moving/Unknown | MoveStart |
MoveStart | Moving/Unknown | Moving |
MoveStart | Stable | MoveEnd |
Moving | Moving/Unknown | Moving |
Moving | Stable | MoveEnd |
MoveEnd | Stable | Settled |
MoveEnd | Moving/Unknown | MoveStart |
MoveStart and MoveEnd each last exactly one frame (edge-triggered).
Settled and Moving persist across multiple frames (level-triggered).
Variants§
Settled
No transition in progress. Camera is (or has been) stable.
MoveStart
First frame of detected motion.
Moving
Camera is mid-move.
MoveEnd
First frame of detected stability after motion.
Implementations§
Trait Implementations§
Source§impl Clone for TransitionPhase
impl Clone for TransitionPhase
Source§fn clone(&self) -> TransitionPhase
fn clone(&self) -> TransitionPhase
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransitionPhase
impl Debug for TransitionPhase
Source§impl Hash for TransitionPhase
impl Hash for TransitionPhase
Source§impl PartialEq for TransitionPhase
impl PartialEq for TransitionPhase
impl Copy for TransitionPhase
impl Eq for TransitionPhase
impl StructuralPartialEq for TransitionPhase
Auto Trait Implementations§
impl Freeze for TransitionPhase
impl RefUnwindSafe for TransitionPhase
impl Send for TransitionPhase
impl Sync for TransitionPhase
impl Unpin for TransitionPhase
impl UnsafeUnpin for TransitionPhase
impl UnwindSafe for TransitionPhase
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