pub struct HttpFailure {
pub error: ProviderError,
pub force_terminal: bool,
pub retry_after: Option<Duration>,
}Expand description
A classified HTTP failure plus the retry-control signals that ride beside
the error taxonomy (x-should-retry override — Anthropic-only, other wires
always pass false — and Retry-After).
Fields§
§error: ProviderErrorThe classified error.
force_terminal: boolA wire-specific “do not retry” override (Anthropic’s
x-should-retry: false); forces terminal regardless of the taxonomy.
retry_after: Option<Duration>Parsed Retry-After delay (integer seconds only; HTTP-dates → None).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpFailure
impl RefUnwindSafe for HttpFailure
impl Send for HttpFailure
impl Sync for HttpFailure
impl Unpin for HttpFailure
impl UnsafeUnpin for HttpFailure
impl UnwindSafe for HttpFailure
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more