Skip to main content

DisconnectSourceExt

Trait DisconnectSourceExt 

Source
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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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

Source§

fn has_roaming_cause(&self) -> bool

Implementors§