pub struct Queue<T> { /* private fields */ }Expand description
The multi-producer single-consumer structure. This is not cloneable, but it may be safely shared so long as it is guaranteed that there is only one popper at a time (many pushers are allowed).
Implementations§
Trait Implementations§
impl<T: Send> Send for Queue<T>
impl<T: Send> Sync for Queue<T>
Auto Trait Implementations§
impl<T> !Freeze for Queue<T>
impl<T> !RefUnwindSafe for Queue<T>
impl<T> Unpin for Queue<T>
impl<T> UnwindSafe for Queue<T>where
T: RefUnwindSafe,
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