DebugProvider

Trait DebugProvider 

Source
pub trait DebugProvider {
    // Required methods
    fn component_name(&self) -> &str;
    fn debug_info(&self) -> String;

    // Provided method
    fn debug_summary(&self) -> Option<String> { ... }
}
Expand description

Trait for components that can provide debug information

Required Methods§

Source

fn component_name(&self) -> &str

Get the component’s name for identification in logs

Source

fn debug_info(&self) -> String

Generate debug information about current state

Provided Methods§

Source

fn debug_summary(&self) -> Option<String>

Generate a compact summary for the status line

Implementors§