pub struct AnimationMoment {
pub node_id: u32,
pub animation_id: u32,
pub kind: AnimationEventKind,
pub property: AnimatedProperty,
pub slot: u8,
pub iteration: u32,
pub elapsed_ms: f32,
pub time_nanos: u64,
}Expand description
One moment the Renderer reported about an animation it is playing.
Fields§
§node_id: u32The node the animation plays on.
animation_id: u32§kind: AnimationEventKind§property: AnimatedProperty§slot: u8§iteration: u32§elapsed_ms: f32Active time without the delay, in ms, which is CSS’s elapsedTime.
time_nanos: u64The frame it happened in, on the Renderer’s frame clock. For Ready, the start
time the animation was given.
Trait Implementations§
Source§impl Clone for AnimationMoment
impl Clone for AnimationMoment
impl Copy for AnimationMoment
Source§impl Debug for AnimationMoment
impl Debug for AnimationMoment
Source§impl PartialEq for AnimationMoment
impl PartialEq for AnimationMoment
impl StructuralPartialEq for AnimationMoment
Auto Trait Implementations§
impl Freeze for AnimationMoment
impl RefUnwindSafe for AnimationMoment
impl Send for AnimationMoment
impl Sync for AnimationMoment
impl Unpin for AnimationMoment
impl UnsafeUnpin for AnimationMoment
impl UnwindSafe for AnimationMoment
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