pub struct FixedClock(/* private fields */);Expand description
A Clock that always returns a configured time until FixedClock::set
changes it.
Implementations§
Source§impl FixedClock
impl FixedClock
Sourcepub fn new(now: DateTime<Utc>) -> FixedClock
pub fn new(now: DateTime<Utc>) -> FixedClock
Creates a FixedClock that returns now until FixedClock::set
is called.
Trait Implementations§
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