pub struct Evtx { /* private fields */ }
Expand description
A Evtx
holds information taken from an EvtxRecord
, a
Windows Event Log record.
Here is an example EVTX Event written by crate evtx
as XML:
<?xml version="1.0" encoding="utf-8"?>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="OpenSSH" Guid="C4BB5D35-0136-5BC3-A262-37EF24EF9802">
</Provider>
<EventID>2</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2023-03-16T20:20:23.130640Z">
</TimeCreated>
<EventRecordID>3</EventRecordID>
<Correlation>
</Correlation>
<Execution ProcessID="25223" ThreadID="30126">
</Execution>
<Channel>OpenSSH</Channel>
<Computer>host1</Computer>
<Security UserID="S-1-2-20">
</Security>
</System>
<EventData>
<Data Name="process">sshd.exe</Data>
<Data Name="payload">error: kex_exchange_identification: Connection closed by remote host</Data>
</EventData>
</Event>
Implementations§
source§impl Evtx
impl Evtx
sourcepub fn from_resultserializedrecord(record: &ResultEvtxRS) -> Result<Evtx, Error>
pub fn from_resultserializedrecord(record: &ResultEvtxRS) -> Result<Evtx, Error>
Create a new Evtx
.
sourcepub fn from_evtxrs(record: &EvtxRS) -> Evtx
pub fn from_evtxrs(record: &EvtxRS) -> Evtx
Create a new Evtx
.
pub const fn id(self: &Evtx) -> RecordId
pub const fn dt_beg_end(&self) -> &DtBegEndPairOpt
pub fn as_bytes(&self) -> &[u8] ⓘ
sourcepub fn ends_with_newline(self: &Evtx) -> bool
pub fn ends_with_newline(self: &Evtx) -> bool
Does this Evtx
end in a newline character?
By default, “yes”, but it’s nice to provide this.
Trait Implementations§
source§impl Ord for Evtx
impl Ord for Evtx
source§impl PartialEq for Evtx
impl PartialEq for Evtx
source§impl PartialOrd for Evtx
impl PartialOrd for Evtx
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Evtx
impl StructuralPartialEq for Evtx
Auto Trait Implementations§
impl Freeze for Evtx
impl RefUnwindSafe for Evtx
impl Send for Evtx
impl Sync for Evtx
impl Unpin for Evtx
impl UnwindSafe for Evtx
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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