Module background_jobs::dev

source ·
Expand description

Useful types and methods for developing Storage and Processor implementations.

Structs§

  • 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
  • Metadata pertaining to a job that exists within the background_jobs system
  • Information about a newly created job
  • A type for storing the relationships between job names and the job itself
  • Information about the sate of an attempted job

Traits§

  • Define a storage backend for jobs

Functions§

  • A provided method to create a new JobInfo from provided arguments
  • Create a NewJobInfo to schedule a job to be performed after a certain time
  • A provided method to coerce arguments into the expected type and run the job