SystemClock
ferro_
clock
0.2.0
System
Clock
Methods
new
Trait Implementations
Clock
Debug
Default
Auto Trait Implementations
Freeze
RefUnwindSafe
Send
Sync
Unpin
UnwindSafe
Blanket Implementations
Any
Borrow<T>
BorrowMut<T>
From<T>
Into<U>
TryFrom<U>
TryInto<U>
In crate ferro_
clock
ferro_clock
Struct
System
Clock
Copy item path
pub struct SystemClock {
/* private fields */
}
Implementations
§
§
impl
SystemClock
pub fn
new
() -> Self
Trait Implementations
§
§
impl
Clock
for
SystemClock
§
fn
now_ns
(&self) ->
i64
§
fn
sleep_until
<'life0, 'async_trait>( &'life0 self, deadline_ns:
i64
, ) ->
Pin
<
Box
<dyn
Future
<Output =
()
> +
Send
+ 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,
§
fn
sleep
<'life0, 'async_trait>( &'life0 self, duration:
Duration
, ) ->
Pin
<
Box
<dyn
Future
<Output =
()
> +
Send
+ 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,
§
impl
Debug
for
SystemClock
§
fn
fmt
(&self, f: &mut
Formatter
<'_>) ->
Result
§
impl
Default
for
SystemClock
§
fn
default
() -> Self
Auto Trait Implementations
§
§
impl
Freeze
for
SystemClock
§
impl
RefUnwindSafe
for
SystemClock
§
impl
Send
for
SystemClock
§
impl
Sync
for
SystemClock
§
impl
Unpin
for
SystemClock
§
impl
UnwindSafe
for
SystemClock
Blanket Implementations
§
§
impl<T>
Any
for T
where T: 'static + ?
Sized
,
§
fn
type_id
(&self) ->
TypeId
§
impl<T>
Borrow
<T> for T
where T: ?
Sized
,
§
fn
borrow
(&self) ->
&T
§
impl<T>
BorrowMut
<T> for T
where T: ?
Sized
,
§
fn
borrow_mut
(&mut self) ->
&mut T
§
impl<T>
From
<T> for T
§
fn
from
(t: T) -> T
§
impl<T, U>
Into
<U> for T
where U:
From
<T>,
§
fn
into
(self) -> U
§
impl<T, U>
TryFrom
<U> for T
where U:
Into
<T>,
§
type
Error
=
Infallible
§
fn
try_from
(value: U) ->
Result
<T, <T as
TryFrom
<U>>::
Error
>
§
impl<T, U>
TryInto
<U> for T
where U:
TryFrom
<T>,
§
type
Error
= <U as
TryFrom
<T>>::
Error
§
fn
try_into
(self) ->
Result
<U, <U as
TryFrom
<T>>::
Error
>