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§
Provided Methods§
fn distill_with_context( &self, primary: &Value, _related_logs: &[Value], ) -> Result<Vec<DistilledChunk>>
fn provenance(&self) -> DistillProvenance
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".