AggregatesProcessors

Trait AggregatesProcessors 

Source
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§

Source

fn add_processor<P: ProcessesTelemetryMessages>(&mut self, processor: P)

Add a processor.

Source

fn add_snapshooter<S: PutsSnapshot>(&mut self, snapshooter: S)

Add a snapshooter.

Provided Methods§

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.

Implementors§