[][src]Struct crossbeam::queue::MsQueue

pub struct MsQueue<T> { /* fields omitted */ }

A Michael-Scott lock-free queue, with support for blocking pops.

Usable with any number of producers and consumers.

Methods

impl<T> MsQueue<T>
[src]

Create a new, empty queue.

Add t to the back of the queue, possibly waking up threads blocked on pop.

Check if this queue is empty.

Attempt to dequeue from the front.

Returns None if the queue is observed to be empty.

Dequeue an element from the front of the queue, blocking if the queue is empty.

Trait Implementations

impl<T: Debug> Debug for MsQueue<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Send> Sync for MsQueue<T>
[src]

impl<T: Send> Send for MsQueue<T>
[src]

impl<T> Drop for MsQueue<T>
[src]

Executes the destructor for this type. Read more

impl<T> Default for MsQueue<T>
[src]

Returns the "default value" for a type. Read more

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut W

Immutably borrows from an owned value. Read more

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

Important traits for &'a mut W

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T
[src]