Struct sqlxmq::JobRegistry [−][src]
pub struct JobRegistry { /* fields omitted */ }
Expand description
Stores a mapping from job name to job. Can be used to construct a job runner.
Implementations
Construct a new job registry from the provided job list.
Set a function to be called whenever a job returns an error.
Provide context for the jobs.
Access job context. Will panic if context with this type has not been provided.
Look-up a job by name.
The default error handler implementation, which simply logs the error.
Construct a job runner from this registry and the provided connection pool.