Skip to main content

ContentionState

Trait ContentionState 

Source
pub trait ContentionState: Default {
    const INIT: Self;
}
Expand description

Trait for contention state stored inside a ChainLock.

Required Associated Constants§

Source

const INIT: Self

Constant initial value for const fn construction of ChainLock.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ContentionState for ()

Source§

const INIT: Self = ()

Source§

impl ContentionState for AtomicU32

Source§

const INIT: Self

Source§

impl ContentionState for AtomicU64

Source§

const INIT: Self

Implementors§