blob: 24660fc98518f2afc54561193e12b99daeb056df [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use fidl_fuchsia_wlan_common as fidl_common;
use fuchsia_inspect::Node;
use fuchsia_inspect_contrib::{inspect_insert, log::WriteInspect};
pub struct InspectWlanChan<'a>(pub &'a fidl_common::WlanChannel);
impl<'a> WriteInspect for InspectWlanChan<'a> {
fn write_inspect(&self, writer: &Node, key: &str) {
inspect_insert!(writer, var key: {
primary: self.0.primary,
cbw: format!("{:?}", self.0.cbw),
secondary80: self.0.secondary80,
});
}
}