Skip to main content

RecoverableError

Trait RecoverableError 

Source
pub trait RecoverableError {
    // Required method
    fn recovery_info(&self) -> Option<ErrorRecovery>;

    // Provided methods
    fn is_retryable(&self) -> bool { ... }
    fn allows_partial(&self) -> bool { ... }
}
Expand description

Trait for errors that support recovery

Required Methods§

Source

fn recovery_info(&self) -> Option<ErrorRecovery>

Get recovery information for this error

Provided Methods§

Source

fn is_retryable(&self) -> bool

Check if this error is retryable

Source

fn allows_partial(&self) -> bool

Check if this error allows partial continuation

Implementors§