pub struct SendmailParser { /* private fields */ }
Expand description
SENDMAIL parser for Sendmail compatibility interface
Implementations§
Source§impl SendmailParser
impl SendmailParser
Sourcepub fn parse_log_line(&self, line: &str) -> Result<SendmailEvent, String>
pub fn parse_log_line(&self, line: &str) -> Result<SendmailEvent, String>
Parse a complete log line into a SendmailEvent
Sourcepub fn supported_event_types(&self) -> usize
pub fn supported_event_types(&self) -> usize
Get the number of supported event types
Sourcepub fn matches_component(&self, line: &str) -> bool
pub fn matches_component(&self, line: &str) -> bool
Check if this parser can handle the given line
Trait Implementations§
Source§impl ComponentParser for SendmailParser
impl ComponentParser for SendmailParser
Source§impl Debug for SendmailParser
impl Debug for SendmailParser
Auto Trait Implementations§
impl Freeze for SendmailParser
impl RefUnwindSafe for SendmailParser
impl Send for SendmailParser
impl Sync for SendmailParser
impl Unpin for SendmailParser
impl UnwindSafe for SendmailParser
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