pub struct CountryInfo { /* private fields */ }Available on crate feature
wifi only.Expand description
Country information.
Defaults to China (CN) with Operating Class “0”.
To create a CountryInfo instance, use the from method first, then set additional
properties using the builder methods.
§Example
use esp_radio::wifi::{CountryInfo, OperatingClass};
let country_info = CountryInfo::from(*b"CN").operating_class(OperatingClass::Indoors);For more information, see the Wi-Fi Country Code in the ESP-IDF documentation.
Implementations§
Source§impl CountryInfo
impl CountryInfo
Sourcepub fn with_operating_class(self, operating_class: OperatingClass) -> Self
Available on crate feature unstable only.
pub fn with_operating_class(self, operating_class: OperatingClass) -> Self
unstable only.Assign the given value to the operating_class field.
Sourcepub fn operating_class(&self) -> OperatingClass
Available on crate feature unstable only.
pub fn operating_class(&self) -> OperatingClass
unstable only.Operating class.
Trait Implementations§
Source§impl Clone for CountryInfo
impl Clone for CountryInfo
Source§fn clone(&self) -> CountryInfo
fn clone(&self) -> CountryInfo
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 CountryInfo
impl Debug for CountryInfo
Source§impl Format for CountryInfo
impl Format for CountryInfo
Source§impl From<[u8; 2]> for CountryInfo
impl From<[u8; 2]> for CountryInfo
Source§impl Hash for CountryInfo
impl Hash for CountryInfo
Source§impl PartialEq for CountryInfo
impl PartialEq for CountryInfo
impl Copy for CountryInfo
impl Eq for CountryInfo
impl StructuralPartialEq for CountryInfo
Auto Trait Implementations§
impl Freeze for CountryInfo
impl RefUnwindSafe for CountryInfo
impl Send for CountryInfo
impl Sync for CountryInfo
impl Unpin for CountryInfo
impl UnwindSafe for CountryInfo
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)