pub struct FixedClock(pub SystemTime);Expand description
Test/repro clock: always returns the same fixed instant.
Not gated behind #[cfg(test)] — reproducible-run harnesses outside this crate may also
want a deterministic clock (mirrors Codex’s clock_source override).
Tuple Fields§
§0: SystemTimeTrait Implementations§
Source§impl ClockSource for FixedClock
impl ClockSource for FixedClock
Source§fn now(&self) -> SystemTime
fn now(&self) -> SystemTime
Returns the current time.
Source§impl Clone for FixedClock
impl Clone for FixedClock
Source§fn clone(&self) -> FixedClock
fn clone(&self) -> FixedClock
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 moreAuto Trait Implementations§
impl Freeze for FixedClock
impl RefUnwindSafe for FixedClock
impl Send for FixedClock
impl Sync for FixedClock
impl Unpin for FixedClock
impl UnsafeUnpin for FixedClock
impl UnwindSafe for FixedClock
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