Skip to main content

TransformHook

Trait TransformHook 

Source
pub trait TransformHook: Send + Sync {
    // Required method
    fn transform<'life0, 'async_trait>(
        &'life0 self,
        envelopes: Vec<EventEnvelope>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<EventEnvelope>, OversyncError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Rust-native event transform hook. Consumers implement this to modify EventEnvelopes in-flight before they reach sinks. Takes precedence over SurrealQL fn::* transforms when set on a [CycleRunner].

Required Methods§

Source

fn transform<'life0, 'async_trait>( &'life0 self, envelopes: Vec<EventEnvelope>, ) -> Pin<Box<dyn Future<Output = Result<Vec<EventEnvelope>, OversyncError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Implementations on Foreign Types§

Source§

impl TransformHook for StepChain

Source§

fn transform<'life0, 'async_trait>( &'life0 self, envelopes: Vec<EventEnvelope>, ) -> Pin<Box<dyn Future<Output = Result<Vec<EventEnvelope>, OversyncError>> + Send + 'async_trait>>
where 'life0: 'async_trait, StepChain: 'async_trait,

Implementors§