pub trait DebugTrace: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn debug_sections(&self) -> Vec<DebugSection>;
// Provided methods
fn debug_summary(&self) -> Option<String> { ... }
fn is_active(&self) -> bool { ... }
}
Expand description
Trait for components that can provide debug information
Required Methods§
Sourcefn debug_sections(&self) -> Vec<DebugSection>
fn debug_sections(&self) -> Vec<DebugSection>
Generate debug sections for the current state Returns a vector of debug sections that can be displayed
Provided Methods§
Sourcefn debug_summary(&self) -> Option<String>
fn debug_summary(&self) -> Option<String>
Optional method to get a quick summary (one-liner)