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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.