pub struct Worker<'scope> {
pub id: usize,
pub thread: ScopedJoinHandle<'scope, ()>,
}
Fields§
§id: usize
§thread: ScopedJoinHandle<'scope, ()>
Auto Trait Implementations§
impl<'scope> Freeze for Worker<'scope>
impl<'scope> !RefUnwindSafe for Worker<'scope>
impl<'scope> Send for Worker<'scope>
impl<'scope> Sync for Worker<'scope>
impl<'scope> Unpin for Worker<'scope>
impl<'scope> !UnwindSafe for Worker<'scope>
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