pub struct DropWorker<T> { /* private fields */ }
Expand description
Provides a worker thread that can receive structs of type T
.
When this instance is dropped, it will signal the worker thread to stop and
wait until joined.
Implementations§
Trait Implementations§
Source§impl<T: Send + 'static> Deref for DropWorker<T>
impl<T: Send + 'static> Deref for DropWorker<T>
Auto Trait Implementations§
impl<T> Freeze for DropWorker<T>
impl<T> !RefUnwindSafe for DropWorker<T>
impl<T> Send for DropWorker<T>where
T: Send,
impl<T> Sync for DropWorker<T>where
T: Send,
impl<T> Unpin for DropWorker<T>
impl<T> !UnwindSafe for DropWorker<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