Trait vector_core::transform::SyncTransform

source ·
pub trait SyncTransform: Send + DynClone + Sync {
    // Required method
    fn transform(&mut self, event: Event, output: &mut TransformOutputsBuf);

    // Provided method
    fn transform_all(
        &mut self,
        events: EventArray,
        output: &mut TransformOutputsBuf,
    ) { ... }
}
Expand description

Broader than the simple FunctionTransform, this trait allows transforms to write to multiple outputs. Those outputs must be known in advanced and returned via TransformConfig::outputs. Attempting to send to any output not registered in advance is considered a bug and will cause a panic.

Required Methods§

source

fn transform(&mut self, event: Event, output: &mut TransformOutputsBuf)

Provided Methods§

source

fn transform_all( &mut self, events: EventArray, output: &mut TransformOutputsBuf, )

Implementations on Foreign Types§

source§

impl SyncTransform for Box<dyn FunctionTransform>

source§

fn transform(&mut self, event: Event, output: &mut TransformOutputsBuf)

Implementors§