Struct wlan_common::ie::HtOpInfo
source · #[repr(C)]pub struct HtOpInfo(pub [u8; 5]);
Tuple Fields§
§0: [u8; 5]
Implementations§
source§impl HtOpInfo
impl HtOpInfo
pub fn secondary_chan_offset_raw(&self) -> u8
pub fn set_secondary_chan_offset_raw(&mut self, value: u8)
pub fn with_secondary_chan_offset_raw(self, value: u8) -> Self
pub fn secondary_chan_offset(&self) -> SecChanOffset
pub fn set_secondary_chan_offset(&mut self, value: SecChanOffset)
pub fn with_secondary_chan_offset(self, value: SecChanOffset) -> Self
pub fn sta_chan_width_raw(&self) -> u8
pub fn set_sta_chan_width_raw(&mut self, value: u8)
pub fn with_sta_chan_width_raw(self, value: u8) -> Self
pub fn sta_chan_width(&self) -> StaChanWidth
pub fn set_sta_chan_width(&mut self, value: StaChanWidth)
pub fn with_sta_chan_width(self, value: StaChanWidth) -> Self
pub fn rifs_mode_permitted(&self) -> bool
pub fn set_rifs_mode_permitted(&mut self, value: bool)
pub fn with_rifs_mode_permitted(self, value: bool) -> Self
pub fn ht_protection_raw(&self) -> u8
pub fn set_ht_protection_raw(&mut self, value: u8)
pub fn with_ht_protection_raw(self, value: u8) -> Self
pub fn ht_protection(&self) -> HtProtection
pub fn set_ht_protection(&mut self, value: HtProtection)
pub fn with_ht_protection(self, value: HtProtection) -> Self
pub fn nongreenfield_present(&self) -> bool
pub fn set_nongreenfield_present(&mut self, value: bool)
pub fn with_nongreenfield_present(self, value: bool) -> Self
pub fn obss_non_ht_stas_present(&self) -> bool
pub fn set_obss_non_ht_stas_present(&mut self, value: bool)
pub fn with_obss_non_ht_stas_present(self, value: bool) -> Self
pub fn center_freq_seg2(&self) -> u8
pub fn set_center_freq_seg2(&mut self, value: u8)
pub fn with_center_freq_seg2(self, value: u8) -> Self
pub fn dual_beacon(&self) -> bool
pub fn set_dual_beacon(&mut self, value: bool)
pub fn with_dual_beacon(self, value: bool) -> Self
pub fn dual_cts_protection(&self) -> bool
pub fn set_dual_cts_protection(&mut self, value: bool)
pub fn with_dual_cts_protection(self, value: bool) -> Self
pub fn stbc_beacon(&self) -> bool
pub fn set_stbc_beacon(&mut self, value: bool)
pub fn with_stbc_beacon(self, value: bool) -> Self
pub fn lsig_txop_protection(&self) -> bool
pub fn set_lsig_txop_protection(&mut self, value: bool)
pub fn with_lsig_txop_protection(self, value: bool) -> Self
pub fn pco_active(&self) -> bool
pub fn set_pco_active(&mut self, value: bool)
pub fn with_pco_active(self, value: bool) -> Self
pub fn pco_phase_raw(&self) -> u8
pub fn set_pco_phase_raw(&mut self, value: u8)
pub fn with_pco_phase_raw(self, value: u8) -> Self
pub fn pco_phase(&self) -> PcoPhase
pub fn set_pco_phase(&mut self, value: PcoPhase)
pub fn with_pco_phase(self, value: PcoPhase) -> Self
pub fn raw(&self) -> [u8; 5]
Trait Implementations§
source§impl FromBytes for HtOpInfo
impl FromBytes for HtOpInfo
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl IntoBytes for HtOpInfo
impl IntoBytes for HtOpInfo
source§impl PartialEq for HtOpInfo
impl PartialEq for HtOpInfo
impl Copy for HtOpInfo
impl Eq for HtOpInfo
impl StructuralPartialEq for HtOpInfo
Auto Trait Implementations§
impl Freeze for HtOpInfo
impl RefUnwindSafe for HtOpInfo
impl Send for HtOpInfo
impl Sync for HtOpInfo
impl Unpin for HtOpInfo
impl UnwindSafe for HtOpInfo
Blanket Implementations§
source§impl<T> AsBytesExt for Twhere
T: IntoBytes + NoCell,
impl<T> AsBytesExt for Twhere
T: IntoBytes + NoCell,
source§fn as_bytes_ref(&self) -> Ref<&[u8], Self>
fn as_bytes_ref(&self) -> Ref<&[u8], Self>
Gets a byte slice reference from a reference to
Self
. Read moresource§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