LogStatus

Trait LogStatus 

Source
pub trait LogStatus: Debug {
    // Required methods
    fn num_notes(&self) -> usize;
    fn num_warnings(&self) -> usize;
    fn num_errors(&self) -> usize;

    // Provided methods
    fn has_no_errors(&self) -> bool { ... }
    fn has_no_warnings(&self) -> bool { ... }
    fn get_messages(&self) -> impl Iterator<Item = &LogMsg> { ... }
    fn get_messages_str(&self) -> String { ... }
    fn get_notes(&self) -> impl Iterator<Item = &String> { ... }
    fn get_warnings(&self) -> impl Iterator<Item = &String> { ... }
    fn get_errors(&self) -> impl Iterator<Item = &String> { ... }
}
Expand description

Common log functionalities for a message consumer/status verifyier

Required Methods§

Provided Methods§

Source

fn has_no_errors(&self) -> bool

Source

fn has_no_warnings(&self) -> bool

Source

fn get_messages(&self) -> impl Iterator<Item = &LogMsg>

Source

fn get_messages_str(&self) -> String

Source

fn get_notes(&self) -> impl Iterator<Item = &String>

Source

fn get_warnings(&self) -> impl Iterator<Item = &String>

Source

fn get_errors(&self) -> impl Iterator<Item = &String>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§