logo

Struct cap_primitives::time::MonotonicClock[][src]

pub struct MonotonicClock(_);
Expand description

A reference to a monotonically nondecreasing clock.

This does not directly correspond to anything in std, however its methods correspond to methods in std::time::Instant.

Implementations

Constructs a new instance of Self.

Ambient Authority

This uses ambient authority to accesses clocks.

Returns an instant corresponding to “now”.

This corresponds to std::time::Instant::now.

Returns the amount of time elapsed since this instant was created.

This corresponds to std::time::Instant::elapsed.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.