pub struct Worker { /* private fields */ }
Implementations§
Source§impl Worker
impl Worker
pub fn get_id(&self) -> &usize
pub fn get_mut_id(&mut self) -> &mut usize
pub fn set_id(&mut self, val: usize) -> &mut Self
pub fn get_thread(&self) -> &Option<JoinHandle<()>>
pub fn get_mut_thread(&mut self) -> &mut Option<JoinHandle<()>>
pub fn set_thread(&mut self, val: Option<JoinHandle<()>>) -> &mut Self
Auto Trait Implementations§
impl Freeze for Worker
impl !RefUnwindSafe for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl !UnwindSafe for Worker
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