[][src]Trait locklessness::handle::IdAllocator

pub trait IdAllocator<IdType> {
    fn new(limit: usize) -> Self;
fn try_allocate_id(&self) -> Option<IdType>;
fn free_id(&self, id: IdType);
fn id_limit(&self) -> usize; }

Required methods

fn new(limit: usize) -> Self

fn try_allocate_id(&self) -> Option<IdType>

fn free_id(&self, id: IdType)

fn id_limit(&self) -> usize

Loading content...

Implementors

impl<IdType: Like<usize>> IdAllocator<IdType> for IndexAllocator[src]

Loading content...