Struct background_jobs::Manager
source · [−]pub struct Manager { /* private fields */ }
Expand description
Manager for worker threads
Manager attempts to restart workers as their arbiters die
Implementations
Retrieve the QueueHandle for the managed workers
Methods from Deref<Target = QueueHandle>
Queues a job for execution
This job will be sent to the server for storage, and will execute whenever a worker for the job’s queue is free to do so.
Schedule a job for execution later
This job will be sent to the server for storage, and will execute after the specified time and when a worker for the job’s queue is free to do so.
Queues a job for recurring execution
This job will be added to it’s queue on the server once every Duration
. It will be
processed whenever workers are free to do so.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Manager
impl !UnwindSafe for Manager
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more