Enum my_internet_ip::MyIpError [−][src]
pub enum MyIpError { AddressParseError(AddrParseError), CurlError(Error), HttpError { code: u32, }, Utf8Error(Utf8Error), }
Any kind of error which may occur during retrieving the IP.
Variants
AddressParseError(AddrParseError)
This error occurs if we cannot parse the IP we got.
CurlError(Error)
This error occurs if a curl request failed.
HttpError
This error occurs if the remote server returned an error.
Fields of HttpError
code: u32 |
Utf8Error(Utf8Error)
This error occurs if the remote server returned invalid UTF-8 data.