Skip to main content

Timeoutable

Trait Timeoutable 

Source
pub trait Timeoutable: Sized {
    // Required method
    fn timeout_error(duration: Duration) -> Self;
}
Expand description

Output that can represent a timeout.

Required Methods§

Source

fn timeout_error(duration: Duration) -> Self

Create a timeout error.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Timeoutable for Result<ChatResponse, LlmError>

Source§

fn timeout_error(duration: Duration) -> Self

Implementors§