Skip to main content

ChunkGuard

Trait ChunkGuard 

Source
pub trait ChunkGuard {
    // Required method
    fn score(&self, recent: &[u32]) -> SafetyScore;
}
Expand description

Scores recent generated output for risk (ADR-012 chunk guard). Reuses the active tier’s safety model; like every safety path it is deterministic and never touches the network (ADR-004).

Required Methods§

Source

fn score(&self, recent: &[u32]) -> SafetyScore

Risk of the recent output window. Higher is riskier.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§