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 aTaskTransform
or vice versa.
Required Methods§
fn transform(&mut self, output: &mut OutputBuffer, event: Event)
Trait Implementations§
source§impl<'clone> Clone for Box<dyn FunctionTransform + 'clone>
impl<'clone> Clone for Box<dyn FunctionTransform + 'clone>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more