Trait vector::transforms::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§
fn transform(&mut self, event: Event, output: &mut TransformOutputsBuf)
Provided Methods§
fn transform_all( &mut self, events: EventArray, output: &mut TransformOutputsBuf, )
Trait Implementations§
source§impl<'clone> Clone for Box<dyn SyncTransform + 'clone>
impl<'clone> Clone for Box<dyn SyncTransform + '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