tokio::runtime::driver

Type Alias Clock

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