Enum vsmtp_common::transfer::error::Delivery
pub enum Delivery {
ReplyParsing {
with_source: Option<String>,
},
Permanent {
reply: ReplyCode,
with_source: Option<String>,
},
Transient {
reply: ReplyCode,
with_source: Option<String>,
},
Tls {
with_source: Option<String>,
},
Client {
with_source: Option<String>,
},
Connection {
with_source: Option<String>,
},
}Expand description
Errors produced by a SMTP exchange
Variants§
ReplyParsing
Failed to parse the reply of the server
Permanent
The server replied with a permanent error 5xx
Transient
The server replied with a transient error 4xx
Tls
Error caused by the TLS
Client
Internal error of the client
Connection
Error due to the underlying connection
Trait Implementations§
§impl<'de> Deserialize<'de> for Delivery
impl<'de> Deserialize<'de> for Delivery
§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 Delivery
impl Error for Delivery
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()