Trait concurrency_traits::semaphore::ReadoutSemaphore[][src]

pub trait ReadoutSemaphore: TrySemaphore {
    type Count;
    fn count(&self) -> Self::Count;
}
Expand description

A semaphore who’s count can be read.

Associated Types

type Count[src]

The type of the count read from this semaphore.

Required methods

fn count(&self) -> Self::Count[src]

The count associated with this semaphore.

Implementors

impl ReadoutSemaphore for AtomicSemaphore[src]

type Count = usize

fn count(&self) -> Self::Count[src]

impl<C, CS> ReadoutSemaphore for FullAsyncSemaphore<C, CS> where
    C: Zero + One + AddAssign + SubAssign + Copy,
    CS: ThreadFunctions
[src]

type Count = C

fn count(&self) -> Self::Count[src]

impl<C, CS> ReadoutSemaphore for ParkSemaphore<C, CS> where
    C: Zero + One + AddAssign + SubAssign + Copy,
    CS: ThreadParker + ThreadFunctions
[src]

type Count = C

fn count(&self) -> Self::Count[src]