pub trait DisconnectSourceExt {
// Required methods
fn inspect_string(&self) -> String;
fn flattened_reason_code(&self) -> u32;
fn cobalt_reason_code(&self) -> u16;
fn locally_initiated(&self) -> bool;
fn has_roaming_cause(&self) -> bool;
}Required Methods§
fn inspect_string(&self) -> String
fn flattened_reason_code(&self) -> u32
fn cobalt_reason_code(&self) -> u16
fn locally_initiated(&self) -> bool
fn has_roaming_cause(&self) -> bool
Implementations on Foreign Types§
Source§impl DisconnectSourceExt for DisconnectSource
impl DisconnectSourceExt for DisconnectSource
Source§fn flattened_reason_code(&self) -> u32
fn flattened_reason_code(&self) -> u32
If disconnect comes from AP, then get the 802.11 reason code. If disconnect comes from MLME, return (1u32 << 17) + reason code. If disconnect comes from user, return (1u32 << 16) + user disconnect reason. This is mainly used for metric.