#[repr(C, align(2))]pub struct wifi_reg_rule_t {
pub start_channel: u8,
pub end_channel: u8,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>,
}Expand description
Argument structure for regulatory rule
Fields§
§start_channel: u8< start channel of regulatory rule
end_channel: u8< end channel of regulatory rule
_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>Implementations§
Source§impl wifi_reg_rule_t
impl wifi_reg_rule_t
pub fn max_bandwidth(&self) -> u16
pub fn set_max_bandwidth(&mut self, val: u16)
pub unsafe fn max_bandwidth_raw(this: *const Self) -> u16
pub unsafe fn set_max_bandwidth_raw(this: *mut Self, val: u16)
pub fn max_eirp(&self) -> u16
pub fn set_max_eirp(&mut self, val: u16)
pub unsafe fn max_eirp_raw(this: *const Self) -> u16
pub unsafe fn set_max_eirp_raw(this: *mut Self, val: u16)
pub fn is_dfs(&self) -> u16
pub fn set_is_dfs(&mut self, val: u16)
pub unsafe fn is_dfs_raw(this: *const Self) -> u16
pub unsafe fn set_is_dfs_raw(this: *mut Self, val: u16)
pub fn reserved(&self) -> u16
pub fn set_reserved(&mut self, val: u16)
pub unsafe fn reserved_raw(this: *const Self) -> u16
pub unsafe fn set_reserved_raw(this: *mut Self, val: u16)
pub fn new_bitfield_1( max_bandwidth: u16, max_eirp: u16, is_dfs: u16, reserved: u16, ) -> __BindgenBitfieldUnit<[u8; 2]>
Trait Implementations§
Source§impl Clone for wifi_reg_rule_t
impl Clone for wifi_reg_rule_t
Source§fn clone(&self) -> wifi_reg_rule_t
fn clone(&self) -> wifi_reg_rule_t
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for wifi_reg_rule_t
impl Debug for wifi_reg_rule_t
Source§impl Default for wifi_reg_rule_t
impl Default for wifi_reg_rule_t
Source§fn default() -> wifi_reg_rule_t
fn default() -> wifi_reg_rule_t
Returns the “default value” for a type. Read more
impl Copy for wifi_reg_rule_t
Auto Trait Implementations§
impl Freeze for wifi_reg_rule_t
impl RefUnwindSafe for wifi_reg_rule_t
impl Send for wifi_reg_rule_t
impl Sync for wifi_reg_rule_t
impl Unpin for wifi_reg_rule_t
impl UnsafeUnpin for wifi_reg_rule_t
impl UnwindSafe for wifi_reg_rule_t
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)