pub struct StaticTimeSource { /* private fields */ }
Expand description
Time source that always returns the same time
Implementations§
Trait Implementations§
Source§impl Debug for StaticTimeSource
impl Debug for StaticTimeSource
Source§fn from(value: StaticTimeSource) -> Self
fn from(value: StaticTimeSource) -> Self
Converts to this type from the input type.
Source§impl TimeSource for StaticTimeSource
impl TimeSource for StaticTimeSource
Source§fn now(&self) -> SystemTime
fn now(&self) -> SystemTime
Returns the current time
Auto Trait Implementations§
impl Freeze for StaticTimeSource
impl RefUnwindSafe for StaticTimeSource
impl Send for StaticTimeSource
impl Sync for StaticTimeSource
impl Unpin for StaticTimeSource
impl UnwindSafe for StaticTimeSource
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