Skip to main content

VerifierLogger

Trait VerifierLogger 

Source
pub trait VerifierLogger {
    // Required method
    fn log(&mut self, line: &[u8]);

    // Provided method
    fn is_enabled(&self) -> bool { ... }
}
Expand description

A trait to receive the log from the verifier.

Required Methods§

Source

fn log(&mut self, line: &[u8])

Log a line. The line is always a correct encoded ASCII string.

Provided Methods§

Source

fn is_enabled(&self) -> bool

Returns whether logging is currently enabled and can accept output.

Verifiers check this before evaluating log messages or formatting strings.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§