Trait netstack3_core::AtomicInstant

source ·
pub trait AtomicInstant<I>: Debug
where I: Instant,
{ // Required methods fn new(instant: I) -> Self; fn load(&self, ordering: Ordering) -> I; fn store(&self, instant: I, ordering: Ordering); fn store_max(&self, instant: I, ordering: Ordering); }
Expand description

A type representing an instant in time that can be atomically updated.

Required Methods§

source

fn new(instant: I) -> Self

Instantiates Self from the given instant.

source

fn load(&self, ordering: Ordering) -> I

Loads an Instant, atomically.

source

fn store(&self, instant: I, ordering: Ordering)

Stores an Instant, atomically,

source

fn store_max(&self, instant: I, ordering: Ordering)

Store the maximum of the current value and the provided value.

Object Safety§

This trait is not object safe.

Implementors§