Struct sqlxmq::JobRunnerOptions[][src]

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

Type used to build a job runner.

Implementations

Begin constructing a new job runner using the specified connection pool, and the provided execution function.

Set the concurrency limits for this job runner. When the number of active jobs falls below the minimum, the runner will poll for more, up to the maximum.

The difference between the min and max will dictate the maximum batch size which can be received: larger batch sizes are more efficient.

Set the channel names which this job runner will subscribe to. If unspecified, the job runner will subscribe to all channels.

Choose whether to automatically keep jobs alive whilst they’re still running. Defaults to true.

Start the job runner in the background. The job runner will stop when the returned handle is dropped.

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.