pub trait PocketIcTimeExt {
// Required methods
fn tick_n(&self, times: usize);
fn current_time_nanos(&self) -> u64;
fn restore_time_nanos(&self, nanos_since_epoch: u64);
}Expand description
Multi-step time helpers that add test policy beyond PocketIC’s primitives.
Required Methods§
Sourcefn current_time_nanos(&self) -> u64
fn current_time_nanos(&self) -> u64
Capture PocketIC wall-clock time as nanoseconds since the Unix epoch.
Sourcefn restore_time_nanos(&self, nanos_since_epoch: u64)
fn restore_time_nanos(&self, nanos_since_epoch: u64)
Restore wall-clock and certified time from one captured value.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".