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 )

Trait Implementations§

source§

impl<'clone> Clone for Box<dyn SyncTransform + 'clone>

source§

fn clone(&self) -> Box<dyn SyncTransform + 'clone>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn SyncTransform + Send + 'clone>

source§

fn clone(&self) -> Box<dyn SyncTransform + Send + 'clone>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn SyncTransform + Send + Sync + 'clone>

source§

fn clone(&self) -> Box<dyn SyncTransform + Send + Sync + 'clone>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn SyncTransform + Sync + 'clone>

source§

fn clone(&self) -> Box<dyn SyncTransform + Sync + 'clone>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementations on Foreign Types§

source§

impl SyncTransform for Box<dyn FunctionTransform>

source§

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

Implementors§

source§

impl SyncTransform for Route

source§

impl<Runner> SyncTransform for Remap<Runner>
where Runner: VrlRunner + Clone + Send + Sync,

source§

impl<T> SyncTransform for T