Struct compio_runtime::time::Interval
source · pub struct Interval { /* private fields */ }
Expand description
Interval returned by interval
and interval_at
This type allows you to wait on a sequence of instants with a certain
duration between each instant. Unlike calling sleep
in a loop, this lets
you count the time spent between the calls to sleep
as well.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin 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