pub struct Worker<T> {
pub channel: Arc<Channel<T>>,
handles: Vec<JoinHandle<()>>,
}
Expand description
Fields§
§channel: Arc<Channel<T>>
Shared Channel with the worker threads.
handles: Vec<JoinHandle<()>>
Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Worker<T>
impl<T> Send for Worker<T>where
T: Send,
impl<T> Sync for Worker<T>where
T: Send,
impl<T> Unpin for Worker<T>
impl<T> !UnwindSafe for Worker<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