Enum vsmtp_common::transfer::error::Lookup
pub enum Lookup {
NoRecords {},
ContainsNullMX {
domain: Domain,
},
TimedOut,
NoConnections,
IO(String),
Proto(String),
Message(String),
NotImplemented,
}Expand description
Error produced by the ip/mx lookup of a target
Variants§
NoRecords
Fields
No records found for the given query
ContainsNullMX
The lookup returned a record with a null MX
TimedOut
The lookup timed out
NoConnections
IO(String)
Proto(String)
Message(String)
NotImplemented
Trait Implementations§
§impl<'de> Deserialize<'de> for Lookup
impl<'de> Deserialize<'de> for Lookup
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Error for Lookup
impl Error for Lookup
1.30.0 · 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()
§impl From<ResolveError> for Lookup
impl From<ResolveError> for Lookup
§fn from(error: ResolveError) -> Self
fn from(error: ResolveError) -> Self
Converts to this type from the input type.