pub struct WiFiForm {
pub mode: WiFiMode,
pub sta_ssid: String,
pub sta_password: String,
pub ap_ssid: String,
pub ap_password: String,
pub ap_dhcp: bool,
pub ap_leases: u8,
pub ap_burst: bool,
pub channel: String,
pub peer_mac: String,
pub ht40: Ht40Mode,
}Expand description
Editable Wi-Fi form values in the Config view.
Fields§
§mode: WiFiMode§sta_ssid: String§sta_password: String§ap_ssid: String§ap_password: String§ap_dhcp: bool§ap_leases: u8DHCP lease pool size in wifi-ap mode (1–8). With more than one
lease the ICMP flood targets every associated station.
ap_burst: boolSynchronized burst flood in wifi-ap mode: every flood tick sends one
frame to every active lease (time-aligned multi-receiver CSI) instead
of round-robining one station per tick.
channel: String§peer_mac: StringESP-NOW peer source-MAC filter (aa:bb:cc:dd:ee:ff); empty means
clear back to automatic magic-prefix pairing. ESP-NOW modes only.
ht40: Ht40ModeForced ESP-NOW TX HT40 secondary channel. ESP-NOW modes only.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WiFiForm
impl<'de> Deserialize<'de> for WiFiForm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WiFiForm
impl RefUnwindSafe for WiFiForm
impl Send for WiFiForm
impl Sync for WiFiForm
impl Unpin for WiFiForm
impl UnsafeUnpin for WiFiForm
impl UnwindSafe for WiFiForm
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.