Struct wlan_common::RadioConfig
source · pub struct RadioConfig {
pub phy: WlanPhyType,
pub channel: Channel,
}
Fields§
§phy: WlanPhyType
§channel: Channel
Implementations§
source§impl RadioConfig
impl RadioConfig
pub fn new(phy: WlanPhyType, cbw: Cbw, primary_channel: u8) -> Self
Trait Implementations§
source§impl Clone for RadioConfig
impl Clone for RadioConfig
source§fn clone(&self) -> RadioConfig
fn clone(&self) -> RadioConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RadioConfig
impl Debug for RadioConfig
source§impl From<RadioConfig> for RadioConfig
impl From<RadioConfig> for RadioConfig
source§fn from(radio_cfg: RadioConfig) -> RadioConfig
fn from(radio_cfg: RadioConfig) -> RadioConfig
Converts to this type from the input type.
source§impl PartialEq for RadioConfig
impl PartialEq for RadioConfig
source§fn eq(&self, other: &RadioConfig) -> bool
fn eq(&self, other: &RadioConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<RadioConfig> for RadioConfig
impl TryFrom<RadioConfig> for RadioConfig
source§fn try_from(fidl_radio_cfg: RadioConfig) -> Result<RadioConfig, Self::Error>
fn try_from(fidl_radio_cfg: RadioConfig) -> Result<RadioConfig, Self::Error>
Performs the conversion.
impl StructuralPartialEq for RadioConfig
Auto Trait Implementations§
impl RefUnwindSafe for RadioConfig
impl Send for RadioConfig
impl Sync for RadioConfig
impl Unpin for RadioConfig
impl UnwindSafe for RadioConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more