Trait vector::transforms::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<'clone> Clone for Box<dyn FunctionTransform + 'clone>

source§

fn clone(&self) -> Box<dyn FunctionTransform + '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 FunctionTransform + Send + 'clone>

source§

fn clone(&self) -> Box<dyn FunctionTransform + 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 FunctionTransform + Sync + Send + 'clone>

source§

fn clone(&self) -> Box<dyn FunctionTransform + Sync + 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 FunctionTransform + Sync + 'clone>

source§

fn clone(&self) -> Box<dyn FunctionTransform + 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 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§