Struct TimerReport
pub struct TimerReport {
pub expirations: u32,
pub skipped: u128,
}Expand description
Expirations produced by one successful SimulationTimer::advance.
A report is a count, not an event queue: process each returned report once.
expirations + skipped (in u128) is the exact number of interval boundaries
crossed by a repeating timer. A one-shot timer reports at most one expiration
over its lifetime until reset and never reports skipped expirations.
Fields§
§expirations: u32Expirations to handle, at most SimulationTimer::max_expirations.
skipped: u128Additional repeating expirations discarded by this call’s catch-up limit.
They are not deferred to later calls. u128 covers even nanosecond intervals
advanced by Duration::MAX without truncating the count.
Trait Implementations§
§impl Clone for TimerReport
impl Clone for TimerReport
§fn clone(&self) -> TimerReport
fn clone(&self) -> TimerReport
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 more§impl Debug for TimerReport
impl Debug for TimerReport
§impl Default for TimerReport
impl Default for TimerReport
§fn default() -> TimerReport
fn default() -> TimerReport
Returns the “default value” for a type. Read more
§impl PartialEq for TimerReport
impl PartialEq for TimerReport
impl Copy for TimerReport
impl Eq for TimerReport
impl StructuralPartialEq for TimerReport
Auto Trait Implementations§
impl Freeze for TimerReport
impl RefUnwindSafe for TimerReport
impl Send for TimerReport
impl Sync for TimerReport
impl Unpin for TimerReport
impl UnwindSafe for TimerReport
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