pub struct Worker { /* private fields */ }Expand description
One thread of a leased set, able to run exactly one job.
run/run_detached consume the worker, so a role cannot be double-booked;
and acquire is the only source of a Worker, so a connection cannot use a
worker it did not lease. Both facts hold by type, not by review.
Implementations§
Source§impl Worker
impl Worker
Auto Trait Implementations§
impl Freeze for Worker
impl RefUnwindSafe for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl UnsafeUnpin 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