pub enum IpifyError {
RequestError,
ParseError,
}
Expand description
Error states which can occur when resolving an IP.
Variants§
RequestError
Indicates an error in the HTTP request to ipify.org
ParseError
Indicates an error in parsing the response from ipify.org
Trait Implementations§
Source§impl Debug for IpifyError
impl Debug for IpifyError
Source§impl From<Error> for IpifyError
impl From<Error> for IpifyError
Source§fn from(_: Error) -> IpifyError
fn from(_: Error) -> IpifyError
Converts to this type from the input type.
Source§impl From<Utf8Error> for IpifyError
impl From<Utf8Error> for IpifyError
Source§fn from(_: Utf8Error) -> IpifyError
fn from(_: Utf8Error) -> IpifyError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IpifyError
impl RefUnwindSafe for IpifyError
impl Send for IpifyError
impl Sync for IpifyError
impl Unpin for IpifyError
impl UnwindSafe for IpifyError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more