Trait vector_core::transform::FunctionTransform

source ·
pub trait FunctionTransform: Send + DynClone + Sync {
    // Required method
    fn transform(&mut self, output: &mut OutputBuffer, event: Event);
}
Expand description

Transforms that are simple, and don’t require attention to coordination. You can run them as simple functions over events in any order.

§Invariants

  • It is an illegal invariant to implement FunctionTransform for a TaskTransform or vice versa.

Required Methods§

source

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

Trait Implementations§

source§

impl SyncTransform for Box<dyn FunctionTransform>

source§

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

source§

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

Implementors§