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 Self: 'async_trait,
             'life0: '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 Self: 'async_trait, 'life0: 'async_trait,

Implementors§