Struct sqlxmq::CurrentJob[][src]

pub struct CurrentJob { /* fields omitted */ }
Expand description

Handle to the currently executing job. When dropped, the job is assumed to no longer be running. To prevent the job being retried, it must be explicitly completed using one of the .complete_ methods.

Implementations

Returns the database pool used to receive this job.

Complete this job and commit the provided transaction at the same time. If the transaction cannot be committed, the job will not be completed.

Complete this job.

Checkpoint this job and commit the provided transaction at the same time. If the transaction cannot be committed, the job will not be checkpointed. Checkpointing allows the job payload to be replaced for the next retry.

Checkpointing allows the job payload to be replaced for the next retry.

Prevent this job from being retried for the specified interval.

Returns the ID of this job.

Returns the name of this job.

Extracts the JSON payload belonging to this job (if present).

Returns the raw JSON payload for this job.

Returns the raw binary payload for this job.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.