pub struct ParserSettings { /* private fields */ }Implementations§
Source§impl ParserSettings
impl ParserSettings
pub fn new() -> Self
Sourcepub fn num_threads(self, num_threads: usize) -> Self
pub fn num_threads(self, num_threads: usize) -> Self
Sets the number of worker threads.
0 will let rayon decide.
Sourcepub fn ansi_codec(self, ansi_codec: EncodingRef) -> Self
pub fn ansi_codec(self, ansi_codec: EncodingRef) -> Self
Sets the ansi codec used by the parser.
Sourcepub fn wevt_cache(self, cache: Option<Arc<WevtCache>>) -> Self
pub fn wevt_cache(self, cache: Option<Arc<WevtCache>>) -> Self
Attach an offline WEVT template cache used as a fallback during parsing.
pub fn validate_checksums(self, validate_checksums: bool) -> Self
pub fn separate_json_attributes(self, separate: bool) -> Self
pub fn indent(self, pretty: bool) -> Self
Sourcepub fn get_ansi_codec(&self) -> EncodingRef
pub fn get_ansi_codec(&self) -> EncodingRef
Gets the current ansi codec
pub fn should_separate_json_attributes(&self) -> bool
pub fn should_indent(&self) -> bool
pub fn should_validate_checksums(&self) -> bool
pub fn get_num_threads(&self) -> &usize
Trait Implementations§
Source§impl Clone for ParserSettings
impl Clone for ParserSettings
Source§fn clone(&self) -> ParserSettings
fn clone(&self) -> ParserSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParserSettings
impl Debug for ParserSettings
Source§impl Default for ParserSettings
impl Default for ParserSettings
Source§impl PartialEq for ParserSettings
impl PartialEq for ParserSettings
Auto Trait Implementations§
impl Freeze for ParserSettings
impl !RefUnwindSafe for ParserSettings
impl Send for ParserSettings
impl Sync for ParserSettings
impl Unpin for ParserSettings
impl !UnwindSafe for ParserSettings
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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