pub struct ResolvedParser {
pub parser: ParserKind,
pub implementation: ParserImplementation,
pub provenance: ParserProvenance,
pub parse_quality: ParseQuality,
pub record_framing: RecordFraming,
pub date_order: DateOrder,
pub specialization: Option<ParserSpecialization>,
}Expand description
Backend-owned parser selection used for both initial parsing and tailing.
Fields§
§parser: ParserKind§implementation: ParserImplementation§provenance: ParserProvenance§parse_quality: ParseQuality§record_framing: RecordFraming§date_order: DateOrder§specialization: Option<ParserSpecialization>Implementations§
Source§impl ResolvedParser
impl ResolvedParser
pub fn new( parser: ParserKind, implementation: ParserImplementation, provenance: ParserProvenance, parse_quality: ParseQuality, record_framing: RecordFraming, date_order: DateOrder, specialization: Option<ParserSpecialization>, ) -> Self
pub fn ccm() -> Self
pub fn simple() -> Self
pub fn ime() -> Self
pub fn generic_timestamped(date_order: DateOrder) -> Self
pub fn panther() -> Self
pub fn cbs() -> Self
pub fn dism() -> Self
pub fn plain_text() -> Self
pub fn iis_w3c() -> Self
pub fn reporting_events() -> Self
pub fn msi() -> Self
pub fn burn() -> Self
pub fn patchmypc_detection() -> Self
pub fn dhcp() -> Self
pub fn intune_macos() -> Self
pub fn registry() -> Self
pub fn secureboot_log() -> Self
pub fn cmtlog() -> Self
pub fn cmtlog_heuristic() -> Self
pub fn psadt_legacy() -> Self
pub fn dns_debug(date_order: DateOrder) -> Self
pub fn dns_audit() -> Self
pub fn compatibility_format(&self) -> LogFormat
pub fn to_info(&self) -> ParserSelectionInfo
Sourcepub fn parse_one_line(
&self,
text: &str,
line_number: u32,
) -> Result<LogEntry, String>
pub fn parse_one_line( &self, text: &str, line_number: u32, ) -> Result<LogEntry, String>
Parse a single line of text using this resolved parser, overriding the
resulting entry’s line_number with the provided value.
This is a thin wrapper over parse_lines_with_selection intended for
on-demand materialization (e.g. the unified timeline) where we already
know the parser and the original line number, and just need to rebuild
a single LogEntry from the raw text.
Trait Implementations§
Source§impl Clone for ResolvedParser
impl Clone for ResolvedParser
Source§impl Debug for ResolvedParser
impl Debug for ResolvedParser
impl Eq for ResolvedParser
Source§impl PartialEq for ResolvedParser
impl PartialEq for ResolvedParser
impl StructuralPartialEq for ResolvedParser
Auto Trait Implementations§
impl Freeze for ResolvedParser
impl RefUnwindSafe for ResolvedParser
impl Send for ResolvedParser
impl Sync for ResolvedParser
impl Unpin for ResolvedParser
impl UnsafeUnpin for ResolvedParser
impl UnwindSafe for ResolvedParser
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