Enum vsmtp_common::transfer::error::Variant
pub enum Variant {
LocalDelivery(LocalDelivery),
Envelop(Envelop),
Lookup(Lookup),
Queuer(Queuer),
Delivery(Vec<(Target, Delivery)>),
Rules(Rule),
}Expand description
Variants§
LocalDelivery(LocalDelivery)
The local delivery failed
Envelop(Envelop)
The envelop to use for the SMTP exchange is invalid
Lookup(Lookup)
The lookup of the target failed
Queuer(Queuer)
The queue manager failed
Delivery(Vec<(Target, Delivery)>)
The delivery failed
Rules(Rule)
An error produced by the rules engine
Implementations§
§impl Variant
impl Variant
pub fn is_permanent(&self) -> bool
pub fn is_permanent(&self) -> bool
Is the error considered permanent, and retrying would produce the same result
Trait Implementations§
§impl<'de> Deserialize<'de> for Variant
impl<'de> Deserialize<'de> for Variant
§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 Variant
impl Error for Variant
§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<LocalDelivery> for Variant
impl From<LocalDelivery> for Variant
§fn from(source: LocalDelivery) -> Self
fn from(source: LocalDelivery) -> Self
Converts to this type from the input type.