Trait AtomicMessage

Source
pub trait AtomicMessage: Sized {
    type Data;

    // Required methods
    fn empty() -> Self;
    fn take(&self, ordering: Ordering) -> Option<Self::Data>;
    fn store(&self, value: Self::Data, ordering: Ordering);
}

Required Associated Types§

Required Methods§

Source

fn empty() -> Self

Source

fn take(&self, ordering: Ordering) -> Option<Self::Data>

Source

fn store(&self, value: Self::Data, ordering: Ordering)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§