DebugInfoProvider

Trait DebugInfoProvider 

Source
pub trait DebugInfoProvider {
    // Required method
    fn debug_info(&self) -> String;

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

Trait for widgets that can provide debug information

All widgets in the TUI should implement this trait to provide consistent debug output for the F5 debug view.

Required Methods§

Source

fn debug_info(&self) -> String

Generate a formatted string containing debug information about the widget’s state

The output should be human-readable and include:

  • Widget name/type as a header
  • Current state (active/inactive, mode, etc.)
  • Any cached or saved data
  • Configuration or settings
  • Any error states or warnings

Provided Methods§

Source

fn debug_summary(&self) -> String

Optional: Get a short one-line summary of the widget state Useful for compact debug views

Implementors§