Struct sqlxmq::JobBuilder[][src]

pub struct JobBuilder<'a> { /* fields omitted */ }
Expand description

Type for building a job to send.

Implementations

Prepare to send a job with the specified name.

Prepare to send a job with the specified name and ID.

Use the provided function to set any number of configuration options at once.

Set the channel name (default “”).

Set the channel arguments (default “”).

Set the number of retries after the initial attempt (default 4).

Set the initial backoff for retries (default 1s).

Set the commit interval for two-phase commit (default disabled).

Set whether this job is strictly ordered with respect to other ordered job in the same channel (default false).

Set a delay before this job is executed (default none).

Set a raw JSON payload for the job.

Set a raw binary payload for the job.

Set a JSON payload for the job.

Spawn the job using the given executor. This might be a connection pool, a connection, or a transaction.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.