#[non_exhaustive]pub enum SessionRole {
Initiator,
Responder,
}Expand description
A node’s part in a sensing session: IEEE 802.11bf’s sensing initiator or sensing responder.
The initiator is the node that originates the soundings a session measures; a responder takes
part in soundings an initiator set up. A node that takes part in no session — a sniffer
observing traffic it neither originates nor answers, or an emitter sounding for whoever listens
— has no session role, which the accessors report as None (an observer).
The host that starts and stops a run is not an initiator; it is the Controller, which is
never a node.
| Mode | Session role |
|---|---|
| ESP-NOW | initiator or responder (configurable) |
| ESP-NOW simplex | source: initiator; peer: responder |
| Wi-Fi station | initiator when it drives the measured traffic, otherwise None |
| Wi-Fi access point | initiator |
| Wi-Fi sniffer | None |
| Emitter | None |
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Initiator
IEEE 802.11bf sensing initiator: originates the soundings that constitute a session.
Responder
IEEE 802.11bf sensing responder: takes part in soundings an initiator set up.
Trait Implementations§
Source§impl Clone for SessionRole
impl Clone for SessionRole
impl Copy for SessionRole
Source§impl Debug for SessionRole
impl Debug for SessionRole
impl Eq for SessionRole
Source§impl PartialEq for SessionRole
impl PartialEq for SessionRole
impl StructuralPartialEq for SessionRole
Auto Trait Implementations§
impl Freeze for SessionRole
impl RefUnwindSafe for SessionRole
impl Send for SessionRole
impl Sync for SessionRole
impl Unpin for SessionRole
impl UnsafeUnpin for SessionRole
impl UnwindSafe for SessionRole
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