vector::transforms

Trait 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, )

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