pub enum FetchProviderErrorCode {
InvalidConfiguration,
InvalidRequest,
ForbiddenDestination,
DnsResolution,
RedirectRejected,
ResponseTooLarge,
UnsupportedMime,
Timeout,
Transport,
MalformedResponse,
Cancelled,
}Expand description
Stable failure categories returned by client fetch backends.
Variants§
InvalidConfiguration
Backend or credential configuration is invalid.
InvalidRequest
The normalized request is invalid.
ForbiddenDestination
The destination is forbidden by URL or address policy.
DnsResolution
DNS resolution failed or returned an unsafe answer.
RedirectRejected
A redirect was invalid, unsafe, cyclic, or exceeded bounds.
ResponseTooLarge
The response exceeded a compressed or decoded byte limit.
UnsupportedMime
The response MIME type or content shape is unsupported.
Timeout
The backend timed out.
Transport
The backend could not be reached or the peer was not the pinned address.
MalformedResponse
The response was malformed or failed bounded extraction.
Cancelled
Cooperative cancellation was requested.
Trait Implementations§
Source§impl Clone for FetchProviderErrorCode
impl Clone for FetchProviderErrorCode
impl Copy for FetchProviderErrorCode
Source§impl Debug for FetchProviderErrorCode
impl Debug for FetchProviderErrorCode
Source§impl<'de> Deserialize<'de> for FetchProviderErrorCode
impl<'de> Deserialize<'de> for FetchProviderErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FetchProviderErrorCode
Source§impl PartialEq for FetchProviderErrorCode
impl PartialEq for FetchProviderErrorCode
Source§impl Serialize for FetchProviderErrorCode
impl Serialize for FetchProviderErrorCode
impl StructuralPartialEq for FetchProviderErrorCode
Auto Trait Implementations§
impl Freeze for FetchProviderErrorCode
impl RefUnwindSafe for FetchProviderErrorCode
impl Send for FetchProviderErrorCode
impl Sync for FetchProviderErrorCode
impl Unpin for FetchProviderErrorCode
impl UnsafeUnpin for FetchProviderErrorCode
impl UnwindSafe for FetchProviderErrorCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.