Enum query_external_ip::SourceError [−][src]
pub enum SourceError { RequestError(Error), JsonFieldMissing(&'static str), JsonFieldMalformed(&'static str, String), RawIpMalformed(AddrParseError), }
Expand description
An error describing what when wrong while querying an IP source.
Variants
RequestError(Error)
A reqwest
error while retrieving the external IP from a Source
JsonFieldMissing(&'static str)
The expected field name was not found in the JSON response
The JSON field contained an invalid value
RawIpMalformed(AddrParseError)
Failed to parse the response
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for SourceError
impl Send for SourceError
impl Sync for SourceError
impl Unpin for SourceError
impl !UnwindSafe for SourceError