Skip to main content

Outcome

Trait Outcome 

Source
pub trait Outcome {
    // Required method
    fn is_success(&self) -> bool;
}
Expand description

Output that can report success/failure for logging.

Separate from Retryable because logging success != retry decision. A successful response might still be retryable (e.g., partial results), and a failed response might not be retryable (e.g., auth error).

Required Methods§

Source

fn is_success(&self) -> bool

Returns true if the operation succeeded.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Outcome for Result<ChatResponse, LlmError>

Implementors§