pub struct AtomicDuration { /* private fields */ }
Expand description

A signed Duration stored as an AtomicI64.

Resolution: 1µs Maximum offset: 278737 years (signed)

Implementations

This type’s time resolution.

This type’s maximum value.

Atomically loads the stored value, converting it to a duration-sign tuple.

The Ordering is used in a single load operation.

Converts the duration-sign tuple into before storing it atomically.

The Ordering is used in a single store operation.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.