pub struct ProviderFailure {
pub kind: ProviderFailureKind,
pub message: String,
pub provider_code: Option<String>,
pub status: Option<u16>,
pub request_id: Option<String>,
pub response_id: Option<String>,
pub retry_not_before: Option<Instant>,
pub retry_budget_exhausted: bool,
}Fields§
§kind: ProviderFailureKind§message: String§provider_code: Option<String>§status: Option<u16>§request_id: Option<String>§response_id: Option<String>§retry_not_before: Option<Instant>Absolute monotonic deadline captured on receipt of provider advice.
retry_budget_exhausted: boolTransport already spent this sampling step’s request retry budget.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderFailure
impl Clone for ProviderFailure
Source§impl Debug for ProviderFailure
impl Debug for ProviderFailure
Source§impl Display for ProviderFailure
impl Display for ProviderFailure
Source§impl Error for ProviderFailure
impl Error for ProviderFailure
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ProviderFailure
impl RefUnwindSafe for ProviderFailure
impl Send for ProviderFailure
impl Sync for ProviderFailure
impl Unpin for ProviderFailure
impl UnsafeUnpin for ProviderFailure
impl UnwindSafe for ProviderFailure
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