Trait apalis_core::context::HasJobContext
source · pub trait HasJobContext {
// Required methods
fn context_mut(&mut self) -> &mut JobContext;
fn context(&self) -> &JobContext;
}Expand description
Gets you the job context of a request This trait allows you to write your own request types
Required Methods§
sourcefn context_mut(&mut self) -> &mut JobContext
fn context_mut(&mut self) -> &mut JobContext
Gets a mutable reference to the job context.
sourcefn context(&self) -> &JobContext
fn context(&self) -> &JobContext
Gets a reference to the job context.