Skip to main content

WorkersStep

Trait WorkersStep 

Source
pub trait WorkersStep: Sized {
    type Out;

    // Required method
    fn apply_workers(self, workers: Workers) -> Self::Out;
}
Expand description

Setting the dispatch concurrency. See SubscriberSettings::workers and SubscriberSettings::threads, which fill this one position.

Required Associated Types§

Source

type Out

The builder with the worker policy fixed.

Required Methods§

Source

fn apply_workers(self, workers: Workers) -> Self::Out

Fixes the dispatch concurrency.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Def, Src, F, P, B, DC> WorkersStep for SubscriberBuilder<Def, Src, (Open, F, P, B), DC>

Source§

type Out = SubscriberBuilder<Def, Src, (Fixed, F, P, B), DC>