pub struct BlufiStatus {
pub device_name: Option<String>,
pub op_mode: Option<i64>,
pub op_mode_name: Option<String>,
pub sta_conn: Option<i64>,
pub sta_conn_name: Option<String>,
pub soft_ap_conn: Option<i64>,
}Expand description
WiFi state reported by a BluFi target device (status, and embedded in
connect). Codes follow the ESP32 BluFi protocol.
Fields§
§device_name: Option<String>Target device name echo.
op_mode: Option<i64>Operation mode code (0 NULL, 1 STA, 2 SoftAP, 3 STA+SoftAP).
op_mode_name: Option<String>Human-readable operation mode.
sta_conn: Option<i64>Station connection code (0 connected, 1 failed, 2 connecting, 3 no IP).
sta_conn_name: Option<String>Human-readable station connection state.
soft_ap_conn: Option<i64>SoftAP connection count/state code.
Trait Implementations§
Source§impl Clone for BlufiStatus
impl Clone for BlufiStatus
Source§fn clone(&self) -> BlufiStatus
fn clone(&self) -> BlufiStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlufiStatus
impl Debug for BlufiStatus
Source§impl<'de> Deserialize<'de> for BlufiStatus
impl<'de> Deserialize<'de> for BlufiStatus
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 BlufiStatus
impl RefUnwindSafe for BlufiStatus
impl Send for BlufiStatus
impl Sync for BlufiStatus
impl Unpin for BlufiStatus
impl UnsafeUnpin for BlufiStatus
impl UnwindSafe for BlufiStatus
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