[][src]Struct wfqueue::queue::WfQueue

pub struct WfQueue { /* fields omitted */ }

Implementations

impl WfQueue[src]

pub fn new(cap: usize) -> WfQueue[src]

pub fn len(&self) -> usize[src]

pub fn capacity(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn is_full(&self) -> bool[src]

pub fn try_enqueue(&self, ctx: &EnqueueCtx, val: NonZeroUsize) -> bool[src]

Each queue should use a fixed enqueue context in each thread. If the wrong context is used, it may lead to logic confusion.

pub fn try_dequeue(&self, ctx: &DequeueCtx) -> Option<NonZeroUsize>[src]

Each queue should use a fixed enqueue context in each thread. If the wrong context is used, it may lead to logic confusion.

Auto Trait Implementations

impl RefUnwindSafe for WfQueue

impl Send for WfQueue

impl Sync for WfQueue

impl Unpin for WfQueue

impl UnwindSafe for WfQueue

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.