Trait robin::job::PerformJob [] [src]

pub trait PerformJob {
    fn perform_now<A: Serialize>(
        &self,
        args: A,
        con: &WorkerConnection
    ) -> RobinResult<()>;
fn perform_later<A: Serialize>(
        &self,
        args: A,
        con: &WorkerConnection
    ) -> RobinResult<()>; }

Trait for either performing immediately, or more commonly, later. This trait is automatically implemented for types that implement Job so you shouldn't ever need to implement this manually.

Required Methods

Perform the job right now without blocking.

Put the job into the queue for processing at a later point.

Implementors