pub enum SmtpEvent {
Sent {Show 13 fields
queue_id: String,
to: String,
relay_hostname: String,
relay_ip: Option<String>,
relay_port: Option<u16>,
delay: f64,
delay_before_queue: Option<f64>,
delay_in_queue: Option<f64>,
delay_connection: Option<f64>,
delay_transmission: Option<f64>,
dsn: Option<String>,
status: String,
message_size: Option<u64>,
},
Deferred {Show 13 fields
queue_id: String,
to: Option<String>,
relay_hostname: Option<String>,
relay_ip: Option<String>,
relay_port: Option<u16>,
delay: Option<f64>,
delay_before_queue: Option<f64>,
delay_in_queue: Option<f64>,
delay_connection: Option<f64>,
delay_transmission: Option<f64>,
dsn: Option<String>,
status: String,
defer_reason: String,
},
Bounced {Show 13 fields
queue_id: String,
to: String,
relay_hostname: Option<String>,
relay_ip: Option<String>,
relay_port: Option<u16>,
delay: Option<f64>,
delay_before_queue: Option<f64>,
delay_in_queue: Option<f64>,
delay_connection: Option<f64>,
delay_transmission: Option<f64>,
dsn: Option<String>,
status: String,
bounce_reason: String,
},
ConnectionTimeout {
queue_id: String,
target_hostname: String,
target_ip: String,
target_port: u16,
timeout_duration: Option<u32>,
},
ConnectionRefused {
queue_id: String,
target_hostname: String,
target_ip: String,
target_port: u16,
},
ConnectionLost {
queue_id: String,
target_hostname: String,
target_ip: String,
lost_stage: String,
},
ProtocolInteraction {
queue_id: String,
interaction_type: String,
details: String,
},
Other {
queue_id: Option<String>,
event_type: String,
message: String,
},
}Expand description
SMTP投递组件事件
Variants§
Sent
投递成功
Fields
Deferred
投递延迟
Fields
Bounced
投递失败(退信)
Fields
ConnectionTimeout
连接超时
Fields
ConnectionRefused
连接拒绝
ConnectionLost
连接丢失
ProtocolInteraction
协议交互
Other
其他SMTP事件
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SmtpEvent
impl<'de> Deserialize<'de> for SmtpEvent
Source§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
Auto Trait Implementations§
impl Freeze for SmtpEvent
impl RefUnwindSafe for SmtpEvent
impl Send for SmtpEvent
impl Sync for SmtpEvent
impl Unpin for SmtpEvent
impl UnwindSafe for SmtpEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more