pub struct LocalParser { /* private fields */ }
Expand description
LOCAL组件解析器
基于Postfix LOCAL守护进程的真实日志格式开发 LOCAL守护进程的特点:
- 处理本地邮件投递
- 管理别名和转发
- 处理配置警告
- 执行外部命令和文件投递
Implementations§
Source§impl LocalParser
impl LocalParser
pub fn new() -> Self
Sourcepub fn parse_line(
&self,
line: &str,
base_event: BaseEvent,
) -> Option<LocalEvent>
pub fn parse_line( &self, line: &str, base_event: BaseEvent, ) -> Option<LocalEvent>
解析LOCAL日志行
Trait Implementations§
Source§impl ComponentParser for LocalParser
impl ComponentParser for LocalParser
Auto Trait Implementations§
impl Freeze for LocalParser
impl RefUnwindSafe for LocalParser
impl Send for LocalParser
impl Sync for LocalParser
impl Unpin for LocalParser
impl UnwindSafe for LocalParser
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