pub struct SystemTimeProvider;
Expand description
Production time provider that uses actual system time
Trait Implementations§
Source§impl Clone for SystemTimeProvider
impl Clone for SystemTimeProvider
Source§fn clone(&self) -> SystemTimeProvider
fn clone(&self) -> SystemTimeProvider
Returns a duplicate of the value. Read more
1.0.0 · 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 SystemTimeProvider
impl Debug for SystemTimeProvider
Source§impl TimeProvider for SystemTimeProvider
impl TimeProvider for SystemTimeProvider
Source§fn wait<'life0, 'async_trait>(
&'life0 self,
duration: Duration,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn wait<'life0, 'async_trait>(
&'life0 self,
duration: Duration,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Wait for the specified duration
impl Copy for SystemTimeProvider
Auto Trait Implementations§
impl Freeze for SystemTimeProvider
impl RefUnwindSafe for SystemTimeProvider
impl Send for SystemTimeProvider
impl Sync for SystemTimeProvider
impl Unpin for SystemTimeProvider
impl UnwindSafe for SystemTimeProvider
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