fn connect_cmd_inspect_summary(cmd: &ConnectCommand) -> String {
    let bss = &cmd.bss;
    format!(
        "ConnectCmd {{ \
         cap: {cap:?}, rates: {rates:?}, \
         protected: {protected:?}, chan: {chan:?}, \
         rssi: {rssi:?}, ht_cap: {ht_cap:?}, ht_op: {ht_op:?}, \
         vht_cap: {vht_cap:?}, vht_op: {vht_op:?} }}",
        cap = bss.cap,
        rates = bss.rates(),
        protected = bss.rsne().is_some(),
        chan = bss.chan,
        rssi = bss.rssi_dbm,
        ht_cap = bss.ht_cap().is_some(),
        ht_op = bss.ht_op().is_some(),
        vht_cap = bss.vht_cap().is_some(),
        vht_op = bss.vht_op().is_some()
    )
}
/// Custom logging for ConnectCommand because its normal full debug string is too large, and we
/// want to reduce how much we log in memory for Inspect. Additionally, in the future, we'd need
/// to anonymize information like BSSID and SSID.
Custom logging for ConnectCommand because its normal full debug string is too large, and we
want to reduce how much we log in memory for Inspect. Additionally, in the future, we'd need
to anonymize information like BSSID and SSID.
Custom logging for ConnectCommand because its normal full debug string is too large and we want to reduce how much we log in memory for Inspect . Additionally in the future we ' d need to anonymize information like BSSID and SSID .
fn connect_cmd_inspect_summary(cmd: &ConnectCommand) -> String {
    let bss = &cmd.bss;
    format!(
        "ConnectCmd {{ \
         cap: {cap:?}, rates: {rates:?}, \
         protected: {protected:?}, chan: {chan:?}, \
         rssi: {rssi:?}, ht_cap: {ht_cap:?}, ht_op: {ht_op:?}, \
         vht_cap: {vht_cap:?}, vht_op: {vht_op:?} }}",
        cap = bss.cap,
        rates = bss.rates(),
        protected = bss.rsne().is_some(),
        chan = bss.chan,
        rssi = bss.rssi_dbm,
        ht_cap = bss.ht_cap().is_some(),
        ht_op = bss.ht_op().is_some(),
        vht_cap = bss.vht_cap().is_some(),
        vht_op = bss.vht_op().is_some()
    )
}
fn connect_cmd_inspect_summary ( cmd : & ConnectCommand ) -> String { let bss = & cmd . bss ; format ! ( " \
 \
 \
 \
 " cap bss cap rates bss rates ( ) protected bss rsne ( ) is_some ( ) chan bss chan rssi bss rssi_dbm ht_cap bss ht_cap ( ) is_some ( ) ht_op bss ht_op ( ) is_some ( ) vht_cap bss vht_cap ( ) is_some ( ) vht_op bss vht_op ( ) is_some ( ) ) }
Custom logging for ConnectCommand because its normal full debug string is too large, and we
want to reduce how much we log in memory for Inspect.
Custom logging for ConnectCommand because its normal full debug string is too large and we want to reduce how much we log in memory for Inspect .
cmd
&ConnectCommand
cmd
&ConnectCommand