pub struct WorkQueue<T> { /* private fields */ }Expand description
Thread-safe work queue
This matches the C++ threadsafe_queue class that wraps std::queue with a mutex for thread-safe access.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for WorkQueue<T>
impl<T> RefUnwindSafe for WorkQueue<T>
impl<T> Send for WorkQueue<T>where
T: Send,
impl<T> Sync for WorkQueue<T>where
T: Send,
impl<T> Unpin for WorkQueue<T>
impl<T> UnsafeUnpin for WorkQueue<T>
impl<T> UnwindSafe for WorkQueue<T>
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