[−][src]Struct wfqueue::queue::WfQueue
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,