Trait robin::job::Job
[−]
[src]
pub trait Job { fn name(&self) -> JobName; fn perform(&self, args: &Args, con: &WorkerConnection) -> JobResult; }
The trait that defines what a particular job should does.
Required Methods
fn name(&self) -> JobName
The name of the job. Required to put the job into Redis.
fn perform(&self, args: &Args, con: &WorkerConnection) -> JobResult
What the job actually does.