pub struct Worker {
pub id: usize,
pub thread: JoinHandle<()>,
}
Expand description
This represents a thread that executes a single request at a time.
Fields§
§id: usize
This is a unique Identifier for the worker
thread: JoinHandle<()>
This is a thread that is used for executing requests.
Implementations§
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