Skip to main content

FixedKeyProcessorSupplier

Trait FixedKeyProcessorSupplier 

Source
pub trait FixedKeyProcessorSupplier<KIn, VIn, VOut>:
    Send
    + Sync
    + 'static {
    // Required method
    fn get(&self) -> Box<dyn FixedKeyProcessor<KIn, VIn, VOut>>;
}
Expand description

Factory for FixedKeyProcessor instances.

It creates one instance per task, which gives per-task isolation. It mirrors ProcessorSupplier. A closure || MyFixedProc is a supplier through the blanket impl below.

Required Methods§

Source

fn get(&self) -> Box<dyn FixedKeyProcessor<KIn, VIn, VOut>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F, P, KIn, VIn, VOut> FixedKeyProcessorSupplier<KIn, VIn, VOut> for F
where F: Fn() -> P + Send + Sync + 'static, KIn: Send, VIn: Send, VOut: Send, P: FixedKeyProcessor<KIn, VIn, VOut>,