pub trait MinVerbosity: Verbose {
    fn min_verbosity(&self) -> Option<Verbosity>;

    fn verbose_enough(&self) -> bool { ... }
}
Expand description

The Logs trait, in combination with MinVerbosity, provides a way to check if a process is verbose_enough to print messages to the terminal. Implementor must first know how verbose it wants to be by implementing Verbose.

Required Methods

The minimum Verbosity at which the implementor should print output. None means no output, but is ignored when Verbose::Verbosity is Verbosity::Debug.

Provided Methods

Check if implementor is set to a Verbosity greater than min_verbosity, or is set to Verbosity::Debug. Typically callers of this function will print some info to the terminal afterwards.

Implementors