Skip to main content

DeclMeter

Trait DeclMeter 

Source
pub trait DeclMeter {
    // Required methods
    fn begin(&mut self);
    fn end(&mut self, name: &str, kind: &'static str, admitted: bool);
}
Expand description

Observes each declaration the reader hands to the kernel: begin just before the kernel checks it and end just after, with its name, its record kind and whether it was admitted. A measurement hook; checking never depends on it.

Required Methods§

Source

fn begin(&mut self)

Source

fn end(&mut self, name: &str, kind: &'static str, admitted: bool)

Implementors§