pub enum AnimationEvent {
Started,
Progress(f32),
Completed,
}Expand description
An event emitted by a Callbacks-wrapped animation.
Variants§
Started
The animation received its first tick.
Progress(f32)
The animation crossed a progress threshold (value in [0.0, 1.0]).
Completed
The animation completed.
Trait Implementations§
Source§impl Clone for AnimationEvent
impl Clone for AnimationEvent
Source§fn clone(&self) -> AnimationEvent
fn clone(&self) -> AnimationEvent
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 AnimationEvent
impl Debug for AnimationEvent
Source§impl PartialEq for AnimationEvent
impl PartialEq for AnimationEvent
impl StructuralPartialEq for AnimationEvent
Auto Trait Implementations§
impl Freeze for AnimationEvent
impl RefUnwindSafe for AnimationEvent
impl Send for AnimationEvent
impl Sync for AnimationEvent
impl Unpin for AnimationEvent
impl UnsafeUnpin for AnimationEvent
impl UnwindSafe for AnimationEvent
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