pub struct PickupEvent {
pub timestamp: DateTime<Utc>,
pub pid: Option<u32>,
pub event_type: PickupEventType,
}Expand description
Pickup邮件拾取事件
记录pickup守护进程从maildrop目录拾取邮件的活动
Fields§
§timestamp: DateTime<Utc>事件发生时间戳(UTC时间)
pid: Option<u32>进程ID(可选) pickup进程的系统标识符
event_type: PickupEventType事件类型(配置警告或邮件拾取)
Implementations§
Source§impl PickupEvent
impl PickupEvent
pub fn new( timestamp: DateTime<Utc>, pid: Option<u32>, event_type: PickupEventType, ) -> Self
Sourcepub fn config_override_warning(
timestamp: DateTime<Utc>,
pid: Option<u32>,
file_path: String,
line_number: u32,
parameter_name: String,
parameter_value: String,
) -> Self
pub fn config_override_warning( timestamp: DateTime<Utc>, pid: Option<u32>, file_path: String, line_number: u32, parameter_name: String, parameter_value: String, ) -> Self
创建配置覆盖警告事件
Sourcepub fn mail_pickup(
timestamp: DateTime<Utc>,
pid: Option<u32>,
queue_id: String,
uid: u32,
sender: String,
) -> Self
pub fn mail_pickup( timestamp: DateTime<Utc>, pid: Option<u32>, queue_id: String, uid: u32, sender: String, ) -> Self
创建邮件拾取事件
Sourcepub fn parameter_name(&self) -> Option<&str>
pub fn parameter_name(&self) -> Option<&str>
获取参数名称(仅配置覆盖警告)
Trait Implementations§
Source§impl Clone for PickupEvent
impl Clone for PickupEvent
Source§fn clone(&self) -> PickupEvent
fn clone(&self) -> PickupEvent
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 PickupEvent
impl Debug for PickupEvent
Source§impl<'de> Deserialize<'de> for PickupEvent
impl<'de> Deserialize<'de> for PickupEvent
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 PickupEvent
impl PartialEq for PickupEvent
Source§impl Serialize for PickupEvent
impl Serialize for PickupEvent
impl StructuralPartialEq for PickupEvent
Auto Trait Implementations§
impl Freeze for PickupEvent
impl RefUnwindSafe for PickupEvent
impl Send for PickupEvent
impl Sync for PickupEvent
impl Unpin for PickupEvent
impl UnwindSafe for PickupEvent
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