pub struct WifiTransaction { /* private fields */ }Expand description
One atomic wireless reconfiguration transaction.
The hardware operation and the protocol-side link policy are carried together so the runtime can commit the IP/DHCP role only after the owner-CPU hardware transition succeeds.
Implementations§
Source§impl WifiTransaction
impl WifiTransaction
Sourcepub fn connect_open(ssid: impl Into<String>) -> WifiTransaction
pub fn connect_open(ssid: impl Into<String>) -> WifiTransaction
Creates an open station-mode transaction.
Sourcepub fn connect_wpa2_pmk(
ssid: impl Into<String>,
pmk: Wpa2Pmk,
) -> WifiTransaction
pub fn connect_wpa2_pmk( ssid: impl Into<String>, pmk: Wpa2Pmk, ) -> WifiTransaction
Creates a WPA2 station transaction. Runtime-owned entropy is added at submission when the caller does not provide it explicitly.
Sourcepub fn connect_wpa2_pmk_with_entropy(
ssid: impl Into<String>,
pmk: Wpa2Pmk,
entropy: [u8; 32],
) -> WifiTransaction
pub fn connect_wpa2_pmk_with_entropy( ssid: impl Into<String>, pmk: Wpa2Pmk, entropy: [u8; 32], ) -> WifiTransaction
Creates a WPA2 station transaction with explicit caller-owned entropy.
Sourcepub fn needs_connect_entropy(&self) -> bool
pub fn needs_connect_entropy(&self) -> bool
Returns whether this secured station transaction still needs entropy from the owning network runtime.
Sourcepub fn provide_connect_entropy(&mut self, provided: [u8; 32])
pub fn provide_connect_entropy(&mut self, provided: [u8; 32])
Installs runtime-owned entropy only when a secured connection does not already carry explicit caller entropy.
Sourcepub const fn disconnect() -> WifiTransaction
pub const fn disconnect() -> WifiTransaction
Creates a station disconnect transaction.
Sourcepub fn open_access_point(
ssid: impl Into<Vec<u8>>,
channel: u8,
link_policy: WifiLinkPolicy,
) -> WifiTransaction
pub fn open_access_point( ssid: impl Into<Vec<u8>>, channel: u8, link_policy: WifiLinkPolicy, ) -> WifiTransaction
Creates an open-access-point transaction and its matching IP policy.
Sourcepub const fn operation(&self) -> &WifiOperation
pub const fn operation(&self) -> &WifiOperation
Returns the hardware operation executed by the queue owner.
Sourcepub const fn link_policy(&self) -> Option<WifiLinkPolicy>
pub const fn link_policy(&self) -> Option<WifiLinkPolicy>
Returns the protocol policy committed after hardware success.
Trait Implementations§
Source§impl Clone for WifiTransaction
impl Clone for WifiTransaction
Source§fn clone(&self) -> WifiTransaction
fn clone(&self) -> WifiTransaction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WifiTransaction
impl Debug for WifiTransaction
impl Eq for WifiTransaction
Source§impl PartialEq for WifiTransaction
impl PartialEq for WifiTransaction
impl StructuralPartialEq for WifiTransaction
Auto Trait Implementations§
impl Freeze for WifiTransaction
impl RefUnwindSafe for WifiTransaction
impl Send for WifiTransaction
impl Sync for WifiTransaction
impl Unpin for WifiTransaction
impl UnsafeUnpin for WifiTransaction
impl UnwindSafe for WifiTransaction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.