pub struct FixedClock {
pub now: Timestamp,
pub today: Date,
}Expand description
Clock pinned to a fixed instant and date — deterministic for tests.
Fields§
§now: Timestamp§today: DateTrait Implementations§
Source§impl Clock for FixedClock
impl Clock for FixedClock
Auto 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