pub struct Worker { /* private fields */ }Expand description
A running job worker that processes enqueued jobs.
Implements crate::runtime::Task for graceful shutdown. Pass the
Worker to the run! macro so it is shut down when the
process receives a termination signal.
Construct via Worker::builder.
Implementations§
Trait 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 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