pub trait AggregatesProcessors {
// Required methods
fn add_processor<P: ProcessesTelemetryMessages>(&mut self, processor: P);
fn add_snapshooter<S: PutsSnapshot>(&mut self, snapshooter: S);
// Provided method
fn attached_mount(&mut self, mount: ProcessorMount) -> AttachedMount { ... }
}Expand description
Implementors can group everything that can process
TelemetryMessages.
Since PutsSnapshot implementors can be added almost everywhere
the add_snapshooter method is placed here, too.
Required Methods§
Sourcefn add_processor<P: ProcessesTelemetryMessages>(&mut self, processor: P)
fn add_processor<P: ProcessesTelemetryMessages>(&mut self, processor: P)
Add a processor.
Sourcefn add_snapshooter<S: PutsSnapshot>(&mut self, snapshooter: S)
fn add_snapshooter<S: PutsSnapshot>(&mut self, snapshooter: S)
Add a snapshooter.
Provided Methods§
fn attached_mount(&mut self, mount: ProcessorMount) -> AttachedMount
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.