pub struct Interval {
pub id: u64,
pub period: Duration,
pub callback: Callback,
}Expand description
A timer a component asked for with BuildContext::use_interval.
Fields§
§id: u64What tells this timer from the others, and the same one from one build to the next: it is what the shell diffs to start a timer, keep it running, and stop it.
period: DurationHow often it fires.
callback: CallbackWhat it does when it does.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Interval
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnsafeUnpin for Interval
impl UnwindSafe for Interval
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