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].