pub struct WifiControlHandle { /* private fields */ }Expand description
Standalone handle to a device’s wireless control plane.
Holds a clone of the device’s Arc<NetInner>, so it keeps working after the
originating Net has been consumed into a data-plane driver. See
Net::wifi_control_handle.
Implementations§
Source§impl WifiControlHandle
impl WifiControlHandle
Sourcepub fn wifi_control(&self) -> Option<&mut dyn WifiControl>
pub fn wifi_control(&self) -> Option<&mut dyn WifiControl>
Access the wireless control plane.
§Safety / concurrency
This aliases the same Interface the data plane drives. The caller must
not invoke control operations concurrently with the device’s RX/TX or
poll path on the same interface. In practice mode switching is issued
from a syscall/task context that is serialized against the stack’s poll
task, never from inside an RX callback.
Sourcepub fn mac_address(&self) -> [u8; 6]
pub fn mac_address(&self) -> [u8; 6]
The device’s current MAC address (may change across a mode switch as the firmware re-creates its VIF).
Trait Implementations§
Source§impl Clone for WifiControlHandle
impl Clone for WifiControlHandle
impl Send for WifiControlHandle
impl Sync for WifiControlHandle
Auto Trait Implementations§
impl !RefUnwindSafe for WifiControlHandle
impl !UnwindSafe for WifiControlHandle
impl Freeze for WifiControlHandle
impl Unpin for WifiControlHandle
impl UnsafeUnpin for WifiControlHandle
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