Clock
tokio
1.44.1
Clock
Aliased type
Methods
new
now
Trait Implementations
Clone
Debug
In tokio::
runtime::
driver
Structs
Cfg
Driver
Handle
Enums
IoHandle
IoStack
TimeDriver
Functions
create_clock
create_io_stack
create_process_driver
create_signal_driver
create_time_driver
Type Aliases
Clock
IoDriver
ProcessDriver
SignalDriver
SignalHandle
TimeHandle
tokio
::
runtime
::
driver
Type Alias
Clock
Copy item path
Settings
Help
Summary
Source
pub(crate) type Clock =
Clock
;
Aliased Type
§
struct Clock {}
Implementations
Source
§
impl
Clock
Source
pub(crate) fn
new
(_enable_pausing:
bool
, _start_paused:
bool
) ->
Clock
Source
pub(crate) fn
now
(&self) ->
Instant
Trait Implementations
Source
§
impl
Clone
for
Clock
Source
§
fn
clone
(&self) ->
Clock
Returns a copy of the value.
Read more
1.0.0
·
Source
§
fn
clone_from
(&mut self, source: &Self)
Performs copy-assignment from
source
.
Read more
Source
§
impl
Debug
for
Clock
Source
§
fn
fmt
(&self, f: &mut
Formatter
<'_>) ->
Result
Formats the value using the given formatter.
Read more