[][src]Struct dbq::JobContext

pub struct JobContext<'a> {
    pub job: &'a Job,
    pub tx: &'a Transaction<'a>,
}

Contains the job and the transaction for use from within a handler

Fields

job: &'a Job

Information about and status of the job that is being run

tx: &'a Transaction<'a>

Each job is run within a transaction. Use tx to make database calls within the job to ensure that those calls are rolled-back or committed in accordance with the success or failure of the job.

Auto Trait Implementations

impl<'a> !Send for JobContext<'a>

impl<'a> !Sync for JobContext<'a>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self