Enum ip_api4rs::error::IpApiError
source · pub enum IpApiError {
ReservedRange(ErrorResponse),
InvalidQuery(ErrorResponse),
JsonParseError(Error),
ReqwestError(Error),
Unknown(String),
}
Expand description
An enum that contains all the possible errors that can occur when querying the API.
Variants§
ReservedRange(ErrorResponse)
InvalidQuery(ErrorResponse)
JsonParseError(Error)
ReqwestError(Error)
Unknown(String)
Trait Implementations§
source§impl Debug for IpApiError
impl Debug for IpApiError
source§impl Display for IpApiError
impl Display for IpApiError
source§impl Error for IpApiError
impl Error for IpApiError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for IpApiError
impl From<Error> for IpApiError
Auto Trait Implementations§
impl !RefUnwindSafe for IpApiError
impl Send for IpApiError
impl Sync for IpApiError
impl Unpin for IpApiError
impl !UnwindSafe for IpApiError
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