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
fn perform_now<A: Serialize>(
&self,
args: A,
con: &WorkerConnection
) -> RobinResult<()>
&self,
args: A,
con: &WorkerConnection
) -> RobinResult<()>
Perform the job right now without blocking.
fn perform_later<A: Serialize>(
&self,
args: A,
con: &WorkerConnection
) -> RobinResult<()>
&self,
args: A,
con: &WorkerConnection
) -> RobinResult<()>
Put the job into the queue for processing at a later point.
Implementors
impl<T> PerformJob for T where
T: Job,