Skip to main content

ResolvedParser

Struct ResolvedParser 

Source
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

Source

pub fn new( parser: ParserKind, implementation: ParserImplementation, provenance: ParserProvenance, parse_quality: ParseQuality, record_framing: RecordFraming, date_order: DateOrder, specialization: Option<ParserSpecialization>, ) -> Self

Source

pub fn ccm() -> Self

Source

pub fn simple() -> Self

Source

pub fn ime() -> Self

Source

pub fn generic_timestamped(date_order: DateOrder) -> Self

Source

pub fn panther() -> Self

Source

pub fn cbs() -> Self

Source

pub fn dism() -> Self

Source

pub fn plain_text() -> Self

Source

pub fn iis_w3c() -> Self

Source

pub fn reporting_events() -> Self

Source

pub fn msi() -> Self

Source

pub fn burn() -> Self

Source

pub fn patchmypc_detection() -> Self

Source

pub fn dhcp() -> Self

Source

pub fn intune_macos() -> Self

Source

pub fn registry() -> Self

Source

pub fn secureboot_log() -> Self

Source

pub fn cmtlog() -> Self

Source

pub fn cmtlog_heuristic() -> Self

Source

pub fn psadt_legacy() -> Self

Source

pub fn dns_debug(date_order: DateOrder) -> Self

Source

pub fn dns_audit() -> Self

Source

pub fn compatibility_format(&self) -> LogFormat

Source

pub fn to_info(&self) -> ParserSelectionInfo

Source

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

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ResolvedParser

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ResolvedParser

Source§

impl PartialEq for ResolvedParser

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ResolvedParser

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.