pub struct EventLog;Expand description
Public entry point.
EventLog is a zero-sized handle namespace; every method opens its own EVT_HANDLE
and returns an iterator that owns and closes it on drop.
Implementations§
Source§impl EventLog
impl EventLog
Sourcepub fn query(
channel: &str,
xpath: &str,
direction: QueryDirection,
) -> Result<Box<dyn Iterator<Item = Result<Event>>>>
pub fn query( channel: &str, xpath: &str, direction: QueryDirection, ) -> Result<Box<dyn Iterator<Item = Result<Event>>>>
Open a channel with an XPath filter and stream matching events.
channel is the log name (e.g. "Application", "Security", "System").
xpath is a structured-query fragment or "*" for everything.
Security channel access requires membership in Event Log Readers or Administrators.
Auto Trait Implementations§
impl Freeze for EventLog
impl RefUnwindSafe for EventLog
impl Send for EventLog
impl Sync for EventLog
impl Unpin for EventLog
impl UnsafeUnpin for EventLog
impl UnwindSafe for EventLog
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