Struct gaffer::Builder[][src]

pub struct Builder<J: Job + 'static> { /* fields omitted */ }
Expand description

Builder of JobRunner

Implementations

Enable merging of Jobs in the queue, if a merge function is provided here, it will be tried with each job added to the queue against each job already in the queue

Set a job as recurring, the job will be enqueued every time interval passes since the last_enqueue of a matching job

Function determining, for each priority, how many threads can be allocated to jobs of this priority, any remaining threads will be left idle to service higher-priority jobs. None means parallelism won’t be limited

Build the JobRunner, spawning thread_num threads as workers

Trait Implementations

Returns the “default value” for a 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.

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.