Trait queue_rs::queue::BlockingQueueBehavior
source · [−]pub trait BlockingQueueBehavior<E: Element>: QueueBehavior<E> + Send {
fn put(&mut self, e: E) -> Result<()>;
fn take(&mut self) -> Result<Option<E>>;
}
Required Methods
Inserts the specified element into this queue. If necessary, waits until space is available.
指定された要素をこのキューに挿入します。必要に応じて、空きが生じるまで待機します。