Module background_jobs::dev[][src]

Useful types and methods for developing Storage and Processor implementations.

Structs

CachedProcessorMap

A type for storing the relationships between job names and the job itself, with the state pre-cached instead of being generated from the state function each time

JobInfo

Metadata pertaining to a job that exists within the background_jobs system

NewJobInfo

Information about a newly created job

ProcessorMap

A type for storing the relationships between job names and the job itself

ReturnJobInfo

Information about the sate of an attempted job

Traits

Storage

Define a storage backend for jobs

Functions

new_job

A provided method to create a new JobInfo from provided arguments

new_scheduled_job

Create a NewJobInfo to schedule a job to be performed after a certain time

process

A provided method to coerce arguments into the expected type and run the job