fn connect_cmd_inspect_summary(cmd: &ConnectCommand) -> String {
    let bss = &cmd.bss;
    let ssid = match String::from_utf8(bss.ssid.clone()) {
        Ok(ssid) => ssid,
        Err(_) => format!("{:?}", bss.ssid),
    };
    format!(
        "ConnectCmd {{ \
         bssid: {bssid}, ssid: {ssid:?}, cap: {cap:?}, basic_rate_set: {basic_rate_set:?}, \
         op_rate_set: {op_rate_set:?}, protected: {protected:?}, chan: {chan:?}, \
         rcpi: {rcpi:?}, rsni: {rsni:?}, rssi: {rssi:?}, ht_cap: {ht_cap:?}, ht_op: {ht_op:?}, \
         vht_cap: {vht_cap:?}, vht_op: {vht_op:?} }}",
        bssid = bss.bssid.to_mac_str(),
        ssid = ssid,
        cap = bss.cap,
        basic_rate_set = bss.basic_rate_set,
        op_rate_set = bss.op_rate_set,
        protected = bss.rsn.is_some(),
        chan = bss.chan,
        rcpi = bss.rcpi_dbmh,
        rsni = bss.rsni_dbh,
        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;
    let ssid = match String::from_utf8(bss.ssid.clone()) {
        Ok(ssid) => ssid,
        Err(_) => format!("{:?}", bss.ssid),
    };
    format!(
        "ConnectCmd {{ \
         bssid: {bssid}, ssid: {ssid:?}, cap: {cap:?}, basic_rate_set: {basic_rate_set:?}, \
         op_rate_set: {op_rate_set:?}, protected: {protected:?}, chan: {chan:?}, \
         rcpi: {rcpi:?}, rsni: {rsni:?}, rssi: {rssi:?}, ht_cap: {ht_cap:?}, ht_op: {ht_op:?}, \
         vht_cap: {vht_cap:?}, vht_op: {vht_op:?} }}",
        bssid = bss.bssid.to_mac_str(),
        ssid = ssid,
        cap = bss.cap,
        basic_rate_set = bss.basic_rate_set,
        op_rate_set = bss.op_rate_set,
        protected = bss.rsn.is_some(),
        chan = bss.chan,
        rcpi = bss.rcpi_dbmh,
        rsni = bss.rsni_dbh,
        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 ; let ssid = match String :: from_utf8 ( bss . ssid . clone ( ) ) { Ok ( ssid ) => ssid , Err ( _ ) => format ! ( " " bss ssid ) , } ; format ! ( " \
 \
 \
 \
 " bssid bss bssid to_mac_str ( ) ssid ssid cap bss cap basic_rate_set bss basic_rate_set op_rate_set bss op_rate_set protected bss rsn is_some ( ) chan bss chan rcpi bss rcpi_dbmh rsni bss rsni_dbh 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