pub struct Queue;Implementations§
Source§impl Queue
impl Queue
Sourcepub fn unbounded<T>() -> (QueueSender<T>, QueueReceiver<T>)
pub fn unbounded<T>() -> (QueueSender<T>, QueueReceiver<T>)
Create a new queue, returning a sender and receiver pair.
Senders may be cloned to allow multiple producers, but only a single receiver may exist.
Auto Trait Implementations§
impl Freeze for Queue
impl RefUnwindSafe for Queue
impl Send for Queue
impl Sync for Queue
impl Unpin for Queue
impl UnwindSafe for Queue
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