use time::OffsetDateTime;
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum Direction {
Out,
In,
}
#[derive(Debug, Clone)]
pub struct Event {
pub ts: OffsetDateTime,
pub dir: Direction,
pub bytes: Vec<u8>,
}
use std::path::Path;
#[cfg(target_os = "linux")]
mod passive_linux;
#[cfg(target_os = "linux")]
pub use passive_linux::run_passive;
#[cfg(target_os = "windows")]
mod passive_win;
#[cfg(target_os = "windows")]
pub use passive_win::run_passive;
pub struct PassiveOptions<'a> {
pub pcap_path: Option<&'a Path>,
#[cfg_attr(not(target_os = "windows"), allow(dead_code))]
pub usbpcap_override: Option<&'a str>,
}