pub enum EventLogSeverity {
Critical,
Error,
Warning,
Information,
Verbose,
Unknown,
}Expand description
Severity level from a Windows Event Log record (System.Level).
Variants§
Implementations§
Source§impl EventLogSeverity
impl EventLogSeverity
Sourcepub fn from_level(level: u8) -> Self
pub fn from_level(level: u8) -> Self
Map the numeric Level value from an EVTX record to a severity.
pub fn is_error_or_warning(&self) -> bool
Trait Implementations§
Source§impl Clone for EventLogSeverity
impl Clone for EventLogSeverity
Source§fn clone(&self) -> EventLogSeverity
fn clone(&self) -> EventLogSeverity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EventLogSeverity
Source§impl Debug for EventLogSeverity
impl Debug for EventLogSeverity
Source§impl<'de> Deserialize<'de> for EventLogSeverity
impl<'de> Deserialize<'de> for EventLogSeverity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EventLogSeverity
Source§impl Hash for EventLogSeverity
impl Hash for EventLogSeverity
Source§impl PartialEq for EventLogSeverity
impl PartialEq for EventLogSeverity
Source§impl Serialize for EventLogSeverity
impl Serialize for EventLogSeverity
impl StructuralPartialEq for EventLogSeverity
Auto Trait Implementations§
impl Freeze for EventLogSeverity
impl RefUnwindSafe for EventLogSeverity
impl Send for EventLogSeverity
impl Sync for EventLogSeverity
impl Unpin for EventLogSeverity
impl UnsafeUnpin for EventLogSeverity
impl UnwindSafe for EventLogSeverity
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