pub struct TimerCallbackInfo {
pub callback_info: CallbackInfo,
pub node_id: OptionDomNodeId,
pub frame_start: Instant,
pub call_count: usize,
pub is_about_to_finish: bool,
/* private fields */
}Fields§
§callback_info: CallbackInfoCallback info for this timer
node_id: OptionDomNodeIdIf the timer is attached to a DOM node, this will contain the node ID
frame_start: InstantTime when the frame was started rendering
call_count: usizeHow many times this callback has been called
is_about_to_finish: boolSet to true ONCE on the LAST invocation of the timer (if the timer has a timeout set) This is useful to rebuild the DOM once the timer (usually an animation) has finished.
Trait Implementations§
Source§impl Clone for TimerCallbackInfo
impl Clone for TimerCallbackInfo
Auto Trait Implementations§
impl Freeze for TimerCallbackInfo
impl RefUnwindSafe for TimerCallbackInfo
impl !Send for TimerCallbackInfo
impl !Sync for TimerCallbackInfo
impl Unpin for TimerCallbackInfo
impl UnwindSafe for TimerCallbackInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more