Skip to main content

LogStatus

Trait LogStatus 

Source
pub trait LogStatus: Debug {
Show 13 methods // Required methods fn num_notes(&self) -> usize; fn num_infos(&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 = &LogMsg> { ... } fn get_infos(&self) -> impl Iterator<Item = &LogMsg> { ... } fn get_warnings(&self) -> impl Iterator<Item = &LogMsg> { ... } fn get_errors(&self) -> impl Iterator<Item = &LogMsg> { ... } fn get_totals(&self) -> String { ... }
}
Expand description

Common log functionalities for a message consumer/status verifyier

Required Methods§

Source

fn num_notes(&self) -> usize

Source

fn num_infos(&self) -> usize

Source

fn num_warnings(&self) -> usize

Source

fn num_errors(&self) -> usize

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 = &LogMsg>

Source

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

Source

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

Source

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

Source

fn get_totals(&self) -> 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§