Skip to main content

Retryable

Trait Retryable 

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

Output that can indicate whether retry is appropriate.

Required Methods§

Source

fn should_retry(&self) -> bool

Returns true if the operation should be retried.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Retryable for Result<ChatResponse, LlmError>

Implementors§