Skip to main content

AgentDisplayExt

Trait AgentDisplayExt 

Source
pub trait AgentDisplayExt: AgentDisplay {
    // Provided methods
    fn complete_success(&mut self) { ... }
    fn complete_error(&mut self, error: &str) { ... }
    fn complete_with_outcome(&mut self, outcome: Outcome) { ... }
}
Expand description

Extension trait for using AgentDisplay in a type-erased context

Provided Methods§

Source

fn complete_success(&mut self)

Finish with success (type-erased version that can be called on &mut dyn AgentDisplay)

Source

fn complete_error(&mut self, error: &str)

Finish with error (type-erased version)

Source

fn complete_with_outcome(&mut self, outcome: Outcome)

Finish with outcome (type-erased version)

Implementors§