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;
}

Required Methods§

Implementations on Foreign Types§

source§

impl DisconnectSourceExt for DisconnectSource

source§

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.

source§

fn inspect_string(&self) -> String

source§

fn cobalt_reason_code(&self) -> u16

source§

fn locally_initiated(&self) -> bool

Implementors§