pub enum ErrorEvent {
DeliveryDeferred {
queue_id: String,
to: String,
relay: String,
delay: f64,
delays: String,
dsn: String,
status: String,
reason: String,
error_type: ErrorType,
},
DeliveryFailed {
queue_id: String,
to: String,
relay: String,
delay: f64,
delays: String,
dsn: String,
status: String,
reason: String,
error_type: ErrorType,
},
SystemError {
queue_id: Option<String>,
error_type: ErrorType,
message: String,
},
ConnectionError {
queue_id: String,
to: String,
relay: String,
delay: f64,
delays: String,
dsn: String,
reason: String,
error_type: ErrorType,
},
Other {
queue_id: Option<String>,
error_type: String,
message: String,
},
}
Expand description
ERROR事件类型枚举
覆盖Postfix error组件的各种错误处理事件
Variants§
DeliveryDeferred
投递延迟错误 - 最常见的错误类型
Fields
DeliveryFailed
投递永久失败错误
Fields
SystemError
系统配置错误
ConnectionError
网络连接错误
Fields
Other
其他未分类错误
Implementations§
Trait Implementations§
Source§impl Clone for ErrorEvent
impl Clone for ErrorEvent
Source§fn clone(&self) -> ErrorEvent
fn clone(&self) -> ErrorEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ErrorEvent
impl Debug for ErrorEvent
Source§impl<'de> Deserialize<'de> for ErrorEvent
impl<'de> Deserialize<'de> for ErrorEvent
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
Source§impl PartialEq for ErrorEvent
impl PartialEq for ErrorEvent
Source§impl Serialize for ErrorEvent
impl Serialize for ErrorEvent
impl StructuralPartialEq for ErrorEvent
Auto Trait Implementations§
impl Freeze for ErrorEvent
impl RefUnwindSafe for ErrorEvent
impl Send for ErrorEvent
impl Sync for ErrorEvent
impl Unpin for ErrorEvent
impl UnwindSafe for ErrorEvent
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