pub enum DehashedError {
ReqwestError(Error),
Unauthorized,
InvalidQuery,
RateLimited,
Unknown(String),
ParseIntError(ParseIntError),
ParseAddrError(AddrParseError),
InvalidApiKey(InvalidHeaderValue),
}
Expand description
The common error type of this crate
Variants§
ReqwestError(Error)
Error that are caused by reqwest
Invalid API credentials
InvalidQuery
Query is missing or invalid
RateLimited
The used account got rate limited
Unknown(String)
An unknown error occurred
ParseIntError(ParseIntError)
An error occurred while parsing an int field
ParseAddrError(AddrParseError)
An error occurred while parsing an ip addr field
InvalidApiKey(InvalidHeaderValue)
Invalid header value
Trait Implementations§
Source§impl Debug for DehashedError
impl Debug for DehashedError
Source§impl Display for DehashedError
impl Display for DehashedError
Source§impl Error for DehashedError
impl Error for DehashedError
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 From<AddrParseError> for DehashedError
impl From<AddrParseError> for DehashedError
Source§fn from(value: AddrParseError) -> Self
fn from(value: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DehashedError
impl From<Error> for DehashedError
Source§impl From<InvalidHeaderValue> for DehashedError
impl From<InvalidHeaderValue> for DehashedError
Source§fn from(value: InvalidHeaderValue) -> Self
fn from(value: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for DehashedError
impl From<ParseIntError> for DehashedError
Source§fn from(value: ParseIntError) -> Self
fn from(value: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DehashedError
impl !RefUnwindSafe for DehashedError
impl Send for DehashedError
impl Sync for DehashedError
impl Unpin for DehashedError
impl !UnwindSafe for DehashedError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.