Struct canal::mpmc::MutexLinkedList
[−]
[src]
pub struct MutexLinkedList<T> { /* fields omitted */ }
A mutex-locked List that is safe for push/pop on multiple threads.
Methods
impl<T> MutexLinkedList<T>
[src]
fn new() -> MutexLinkedList<T>
Create a new MutexLinkedList.
impl<T: Send> MutexLinkedList<T>
[src]
fn push(&self, value: T)
Push a value onto queue.
fn pop(&self) -> Option<T>
Pop a value off the queue.
If the queue is empty, None is returned.
Trait Implementations
impl<T: Send> Clone for MutexLinkedList<T>
[src]
fn clone(&self) -> MutexLinkedList<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more