pub struct BlockingQueue<E, Q: QueueBehavior<E>> { /* private fields */ }
Implementations§
Source§impl<E, Q: QueueBehavior<E>> BlockingQueue<E, Q>
impl<E, Q: QueueBehavior<E>> BlockingQueue<E, Q>
Trait Implementations§
Source§impl<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>
Source§impl<E: Clone, Q: Clone + QueueBehavior<E>> Clone for BlockingQueue<E, Q>
impl<E: Clone, Q: Clone + QueueBehavior<E>> Clone for BlockingQueue<E, Q>
Source§fn clone(&self) -> BlockingQueue<E, Q>
fn clone(&self) -> BlockingQueue<E, Q>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<E: Debug, Q: Debug + QueueBehavior<E>> Debug for BlockingQueue<E, Q>
impl<E: Debug, Q: Debug + QueueBehavior<E>> Debug for BlockingQueue<E, Q>
Source§impl<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>
Source§fn 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.
容量制限に違反せずにすぐ実行できる場合は、指定された要素をこのキューに挿入します。
容量制限に違反せずにすぐ実行できる場合は、指定された要素をこのキューに挿入します。
Source§fn 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 を返します。
キューの先頭を取得および削除します。キューが空の場合は None を返します。
Auto Trait Implementations§
impl<E, Q> Freeze for BlockingQueue<E, Q>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more