pub enum ProbeError {
NoCredentials,
Fetch(OauthUsageError),
Unmappable(String),
}Expand description
Why a probe did not produce a snapshot: a credential miss, a wire error class from the round-trip, or a 200 whose body maps to nothing.
Variants§
Implementations§
Source§impl ProbeError
impl ProbeError
Sourcepub fn rate_limited_snapshot(&self) -> Option<&UsageSnapshot>
pub fn rate_limited_snapshot(&self) -> Option<&UsageSnapshot>
The plan windows a rate-limited probe still carried, if any: a 429 is a reading, and it is the one that says which window is spent.
Trait Implementations§
Source§impl Debug for ProbeError
impl Debug for ProbeError
Source§impl Display for ProbeError
impl Display for ProbeError
Source§impl Error for ProbeError
impl Error for ProbeError
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 From<OauthUsageError> for ProbeError
impl From<OauthUsageError> for ProbeError
Source§fn from(source: OauthUsageError) -> Self
fn from(source: OauthUsageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProbeError
impl RefUnwindSafe for ProbeError
impl Send for ProbeError
impl Sync for ProbeError
impl Unpin for ProbeError
impl UnsafeUnpin for ProbeError
impl UnwindSafe for ProbeError
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