pub enum CollectorMode {
Sniffer(WifiSnifferConfig),
Station(WifiStationConfig),
AccessPoint(WifiApConfig),
}Expand description
How a collector obtains the frames it measures.
These are capture paths, not roles: each one ends with this node holding CSI. Which one to use depends on what traffic is available to measure.
Variants§
Sniffer(WifiSnifferConfig)
Lock a channel in promiscuous mode and measure every frame overheard.
This is the capture path that pairs with an NodeRole::Emitter: the
emitter injects unassociated frames and the sniffer measures them, with no
association or handshake between the two.
Station(WifiStationConfig)
Associate as a Wi-Fi station and measure CSI from received frames.
AccessPoint(WifiApConfig)
Run a self-contained softAP: start an access point (plus a minimal DHCP
server) so a CollectorMode::Station node can associate and generate
steady uplink traffic, measured as CSI here.
Auto Trait Implementations§
impl Freeze for CollectorMode
impl RefUnwindSafe for CollectorMode
impl Send for CollectorMode
impl Sync for CollectorMode
impl Unpin for CollectorMode
impl UnsafeUnpin for CollectorMode
impl UnwindSafe for CollectorMode
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