pub struct QueueMPSC<E> { /* private fields */ }
Implementations
Trait Implementations
sourceimpl<E: Element + 'static> QueueBehavior<E> for QueueMPSC<E>
impl<E: Element + 'static> QueueBehavior<E> for QueueMPSC<E>
sourcefn offer(&mut self, e: E) -> Result<()>
fn offer(&mut self, e: E) -> Result<()>
The specified element will be inserted into this queue,
if the queue can be executed immediately without violating the capacity limit.
容量制限に違反せずにすぐ実行できる場合は、指定された要素をこのキューに挿入します。 Read more
sourcefn poll(&mut self) -> Result<Option<E>>
fn poll(&mut self) -> Result<Option<E>>
Retrieves and deletes the head of the queue. Returns None if the queue is empty.
キューの先頭を取得および削除します。キューが空の場合は None を返します。 Read more
sourcefn non_empty(&self) -> bool
fn non_empty(&self) -> bool
Returns whether this queue is non-empty.
このキューが空でないかどうかを返します。 Read more
Auto Trait Implementations
impl<E> !RefUnwindSafe for QueueMPSC<E>
impl<E> Send for QueueMPSC<E>where
E: Send,
impl<E> !Sync for QueueMPSC<E>
impl<E> Unpin for QueueMPSC<E>
impl<E> !UnwindSafe for QueueMPSC<E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more