pub struct PostlogdParser;
Expand description
POSTLOGD组件解析器 处理Postfix内部日志服务器相关事件
Implementations§
Source§impl PostlogdParser
impl PostlogdParser
Sourcepub fn parse_log_line(&self, line: &str) -> Result<PostlogdEvent, String>
pub fn parse_log_line(&self, line: &str) -> Result<PostlogdEvent, String>
解析POSTLOGD日志行
Sourcepub fn supported_event_types(&self) -> usize
pub fn supported_event_types(&self) -> usize
获取支持的事件类型数量
Sourcepub fn matches_component(&self, line: &str) -> bool
pub fn matches_component(&self, line: &str) -> bool
检查日志行是否属于POSTLOGD组件
Trait Implementations§
Source§impl ComponentParser for PostlogdParser
impl ComponentParser for PostlogdParser
Auto Trait Implementations§
impl Freeze for PostlogdParser
impl RefUnwindSafe for PostlogdParser
impl Send for PostlogdParser
impl Sync for PostlogdParser
impl Unpin for PostlogdParser
impl UnwindSafe for PostlogdParser
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