Skip to main content

FixedKeyProcessor

Trait FixedKeyProcessor 

Source
pub trait FixedKeyProcessor<KIn: Send, VIn: Send, VOut: Send>: Send + 'static {
    // Required method
    fn process<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 mut self,
        ctx: &'life1 mut FixedKeyProcessorContext<'life2, 'life3, 'life4, KIn, VOut>,
        record: FixedKeyRecord<KIn, VIn>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
}
Expand description

A fixed-key record processor (KIP-820): it may change the value but not the key. The typed analogue of Processor; one instance is created per task via FixedKeyProcessorSupplier::get.

Required Methods§

Source

fn process<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 mut self, ctx: &'life1 mut FixedKeyProcessorContext<'life2, 'life3, 'life4, KIn, VOut>, record: FixedKeyRecord<KIn, VIn>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Trait Implementations§

Source§

impl<KIn, VIn, VOut> FixedKeyProcessor<KIn, VIn, VOut> for Box<dyn FixedKeyProcessor<KIn, VIn, VOut>>
where KIn: Send + 'static, VIn: Send + 'static, VOut: Send + 'static,

A boxed fixed-key processor is itself a FixedKeyProcessor, delegating to the inner value. Mirrors the Box<dyn Processor> blanket impl in crate::processor::api: it lets a FixedKeyProcessorSupplier closure return Box<dyn FixedKeyProcessor<…>> (chosen at runtime) and still feed a the internal fixed-key adapter, which requires P: FixedKeyProcessor.

Source§

fn process<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 mut self, ctx: &'life1 mut FixedKeyProcessorContext<'life2, 'life3, 'life4, KIn, VOut>, record: FixedKeyRecord<KIn, VIn>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<KIn, VIn, VOut> FixedKeyProcessor<KIn, VIn, VOut> for Box<dyn FixedKeyProcessor<KIn, VIn, VOut>>
where KIn: Send + 'static, VIn: Send + 'static, VOut: Send + 'static,

A boxed fixed-key processor is itself a FixedKeyProcessor, delegating to the inner value. Mirrors the Box<dyn Processor> blanket impl in crate::processor::api: it lets a FixedKeyProcessorSupplier closure return Box<dyn FixedKeyProcessor<…>> (chosen at runtime) and still feed a the internal fixed-key adapter, which requires P: FixedKeyProcessor.

Source§

fn process<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 mut self, ctx: &'life1 mut FixedKeyProcessorContext<'life2, 'life3, 'life4, KIn, VOut>, record: FixedKeyRecord<KIn, VIn>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Implementors§