pub struct DeterministicWallClock { /* private fields */ }Expand description
Deterministic wall/monotonic/timer model with one shared timeline.
Implementations§
Source§impl DeterministicTime
impl DeterministicTime
Sourcepub const fn new(wall_epoch_ms: u64, wall_step_ms: u64) -> DeterministicTime
pub const fn new(wall_epoch_ms: u64, wall_step_ms: u64) -> DeterministicTime
Creates a deterministic timeline.
Trait Implementations§
Source§impl Clone for DeterministicTime
impl Clone for DeterministicTime
Source§fn clone(&self) -> DeterministicTime
fn clone(&self) -> DeterministicTime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeterministicTime
impl Debug for DeterministicTime
Source§impl MonotonicClock for DeterministicTime
impl MonotonicClock for DeterministicTime
Source§fn now_monotonic(&self) -> Result<MonotonicTimestamp, Error>
fn now_monotonic(&self) -> Result<MonotonicTimestamp, Error>
Observes a monotonic timestamp.
Source§impl Timer for DeterministicTime
impl Timer for DeterministicTime
Source§fn wait_until(&self, deadline: MonotonicTimestamp) -> Result<(), Error>
fn wait_until(&self, deadline: MonotonicTimestamp) -> Result<(), Error>
Advances or waits until the supplied deadline.
Auto Trait Implementations§
impl !Freeze for DeterministicTime
impl RefUnwindSafe for DeterministicTime
impl Send for DeterministicTime
impl Sync for DeterministicTime
impl Unpin for DeterministicTime
impl UnsafeUnpin for DeterministicTime
impl UnwindSafe for DeterministicTime
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