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

This error occurs if we cannot parse the IP we got.

This error occurs if a curl request failed.

This error occurs if the remote server returned an error.

Fields of HttpError

This error occurs if the remote server returned invalid UTF-8 data.

Trait Implementations

impl Debug for MyIpError
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for MyIpError

impl Sync for MyIpError