pub struct RequestFailure {
pub class: ProviderError,
pub status: Option<u16>,
pub detail: String,
}Expand description
What a request died of, once the policy gave up on it.
The caller formats the user-facing message — each provider keeps its
existing error shape, which the loop’s overflow detection greps — and
attaches RequestFailure::class underneath it so policy layers
(failover, the loop) can match on the class instead of the prose.
Fields§
§class: ProviderError§status: Option<u16>HTTP status, when the failure got that far. None is transport.
detail: StringThe provider’s error body, or the transport error text.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestFailure
impl RefUnwindSafe for RequestFailure
impl Send for RequestFailure
impl Sync for RequestFailure
impl Unpin for RequestFailure
impl UnsafeUnpin for RequestFailure
impl UnwindSafe for RequestFailure
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