Skip to main content

Distiller

Trait Distiller 

Source
pub trait Distiller: Send + Sync {
    // Required method
    fn distill(&self, log_entries: &[Value]) -> Result<Vec<DistilledChunk>>;

    // Provided methods
    fn distill_with_context(
        &self,
        primary: &Value,
        _related_logs: &[Value],
    ) -> Result<Vec<DistilledChunk>> { ... }
    fn provenance(&self) -> DistillProvenance { ... }
}
Expand description

Distiller — episodic logs → zero or more pending chunks per input log.

Required Methods§

Source

fn distill(&self, log_entries: &[Value]) -> Result<Vec<DistilledChunk>>

Provided Methods§

Source

fn distill_with_context( &self, primary: &Value, _related_logs: &[Value], ) -> Result<Vec<DistilledChunk>>

Source

fn provenance(&self) -> DistillProvenance

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§