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§
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".