TaskBuilderExt

Trait TaskBuilderExt 

Source
pub trait TaskBuilderExt {
    // Required methods
    fn max_attempts(self, attempts: u32) -> Self;
    fn priority(self, priority: i32) -> Self;
}
Expand description

Extension traits for TaskBuilder

Required Methods§

Source

fn max_attempts(self, attempts: u32) -> Self

Set the max number of attempts for the task being built.

Source

fn priority(self, priority: i32) -> Self

Set the priority for the task being built.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<Args, Pool, IdType> TaskBuilderExt for TaskBuilder<Args, SqlContext<Pool>, IdType>

Source§

fn max_attempts(self, attempts: u32) -> Self

Source§

fn priority(self, priority: i32) -> Self

Implementors§