Struct queue_rs::queue::BlockingQueue
source · [−]pub struct BlockingQueue<E, Q: QueueBehavior<E>> { /* private fields */ }
Implementations
sourceimpl<E, Q: QueueBehavior<E>> BlockingQueue<E, Q>
impl<E, Q: QueueBehavior<E>> BlockingQueue<E, Q>
Trait Implementations
sourceimpl<E: Element + 'static, Q: QueueBehavior<E>> BlockingQueueBehavior<E> for BlockingQueue<E, Q>
impl<E: Element + 'static, Q: QueueBehavior<E>> BlockingQueueBehavior<E> for BlockingQueue<E, Q>
sourceimpl<E: Clone, Q: Clone + QueueBehavior<E>> Clone for BlockingQueue<E, Q>
impl<E: Clone, Q: Clone + QueueBehavior<E>> Clone for BlockingQueue<E, Q>
sourcefn clone(&self) -> BlockingQueue<E, Q>
fn clone(&self) -> BlockingQueue<E, Q>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<E: Debug, Q: Debug + QueueBehavior<E>> Debug for BlockingQueue<E, Q>
impl<E: Debug, Q: Debug + QueueBehavior<E>> Debug for BlockingQueue<E, Q>
sourceimpl<E: Element + 'static, Q: QueueBehavior<E>> QueueBehavior<E> for BlockingQueue<E, Q>
impl<E: Element + 'static, Q: QueueBehavior<E>> QueueBehavior<E> for BlockingQueue<E, Q>
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, Q> RefUnwindSafe for BlockingQueue<E, Q>where
E: RefUnwindSafe,
impl<E, Q> Send for BlockingQueue<E, Q>where
E: Send,
impl<E, Q> Sync for BlockingQueue<E, Q>where
E: Sync,
impl<E, Q> Unpin for BlockingQueue<E, Q>where
E: Unpin,
impl<E, Q> UnwindSafe for BlockingQueue<E, Q>where
E: UnwindSafe,
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