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§
Sourcefn complete_success(&mut self)
fn complete_success(&mut self)
Finish with success (type-erased version that can be called on &mut dyn AgentDisplay)
Sourcefn complete_error(&mut self, error: &str)
fn complete_error(&mut self, error: &str)
Finish with error (type-erased version)
Sourcefn complete_with_outcome(&mut self, outcome: Outcome)
fn complete_with_outcome(&mut self, outcome: Outcome)
Finish with outcome (type-erased version)