pub struct BounceParser { /* private fields */ }Expand description
BOUNCE组件解析器
基于Postfix BOUNCE守护进程的真实日志格式开发 BOUNCE守护进程的特点:
- 处理投递失败通知(non-delivery notification)
- 生成发送者通知邮件
- 处理退信和延迟通知
- 管理通知邮件的生成和发送
Implementations§
Source§impl BounceParser
impl BounceParser
pub fn new() -> Self
Sourcepub fn parse_line(
&self,
line: &str,
base_event: BaseEvent,
) -> Option<BounceEvent>
pub fn parse_line( &self, line: &str, base_event: BaseEvent, ) -> Option<BounceEvent>
解析BOUNCE日志行
Trait Implementations§
Source§impl ComponentParser for BounceParser
impl ComponentParser for BounceParser
Auto Trait Implementations§
impl Freeze for BounceParser
impl RefUnwindSafe for BounceParser
impl Send for BounceParser
impl Sync for BounceParser
impl Unpin for BounceParser
impl UnwindSafe for BounceParser
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> 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