Trait autoincrement::AsyncIncremental[][src]

pub trait AsyncIncremental: Sized {
    type Atomic: Atomic;
    fn initial() -> Self;
fn get_next(atomic: &Self::Atomic) -> Self;
fn into_atomic(value: Self) -> Self::Atomic;
fn from_inner(inner: <Self::Atomic as Atomic>::Inner) -> Self; fn init() -> AsyncIncrement<Self> { ... }
fn init_with(value: Self) -> AsyncIncrement<Self> { ... }
fn init_from(self) -> AsyncIncrement<Self> { ... } }
Expand description

Trait for implementing over thread-safe incremental types

Associated Types

Required methods

Provided methods

Implementors