pub struct FetchProviderError { /* private fields */ }Expand description
Secret-independent client fetch failure.
Implementations§
Source§impl FetchProviderError
impl FetchProviderError
Sourcepub const fn new(code: FetchProviderErrorCode) -> Self
pub const fn new(code: FetchProviderErrorCode) -> Self
Creates a failure with a stable, non-sensitive message.
Sourcepub const fn code(&self) -> FetchProviderErrorCode
pub const fn code(&self) -> FetchProviderErrorCode
Returns the stable category.
Sourcepub const fn message(&self) -> &'static str
pub const fn message(&self) -> &'static str
Returns a bounded secret-independent technical message.
Sourcepub const fn retry_disposition(&self) -> FetchRetryDisposition
pub const fn retry_disposition(&self) -> FetchRetryDisposition
Returns the conservative retry classification.
Trait Implementations§
Source§impl Clone for FetchProviderError
impl Clone for FetchProviderError
impl Copy for FetchProviderError
Source§impl Debug for FetchProviderError
impl Debug for FetchProviderError
Source§impl Display for FetchProviderError
impl Display for FetchProviderError
impl Eq for FetchProviderError
Source§impl Error for FetchProviderError
impl Error for FetchProviderError
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()
Source§impl PartialEq for FetchProviderError
impl PartialEq for FetchProviderError
impl StructuralPartialEq for FetchProviderError
Auto Trait Implementations§
impl Freeze for FetchProviderError
impl RefUnwindSafe for FetchProviderError
impl Send for FetchProviderError
impl Sync for FetchProviderError
impl Unpin for FetchProviderError
impl UnsafeUnpin for FetchProviderError
impl UnwindSafe for FetchProviderError
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,
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.