Skip to main content

UserGuidance

Trait UserGuidance 

Source
pub trait UserGuidance {
    // Required methods
    fn suggestion(&self) -> Option<String>;
    fn next_steps(&self) -> Vec<String>;
}
Expand description

Trait providing actionable recovery guidance for errors.

Each error variant maps to a human-friendly suggestion and next steps, helping users recover without external documentation.

Required Methods§

Source

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

A concise suggestion for the most likely recovery action.

Source

fn next_steps(&self) -> Vec<String>

Ordered list of next steps the user can try.

Implementors§