pub struct WorkerId(/* private fields */);
Expand description
Identifies a thread pool worker.
This identifier is unique scoped by the thread pool. It is possible that different thread pool instances share worker identifier values.
Implementations§
Trait Implementations§
impl Eq for WorkerId
impl StructuralPartialEq for WorkerId
Auto Trait Implementations§
impl Freeze for WorkerId
impl RefUnwindSafe for WorkerId
impl Send for WorkerId
impl Sync for WorkerId
impl Unpin for WorkerId
impl UnwindSafe for WorkerId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)