pub struct CountryInfo { /* private fields */ }Available on crate feature
unstable 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").with_operating_class(OperatingClass::Indoors);For more information, see the Wi-Fi Country Code in the ESP-IDF documentation.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Implementations§
Source§impl CountryInfo
impl CountryInfo
Sourcepub fn with_operating_class(self, operating_class: OperatingClass) -> Self
pub fn with_operating_class(self, operating_class: OperatingClass) -> Self
Assign the given value to the operating_class field.
Sourcepub fn operating_class(&self) -> OperatingClass
pub fn operating_class(&self) -> OperatingClass
Operating class.
Trait Implementations§
Source§impl Clone for CountryInfo
Available on crate feature wifi only.
impl Clone for CountryInfo
Available on crate feature
wifi only.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
Available on crate feature wifi only.
impl Debug for CountryInfo
Available on crate feature
wifi only.Source§impl Format for CountryInfo
Available on crate feature wifi only.
impl Format for CountryInfo
Available on crate feature
wifi only.Source§impl From<[u8; 2]> for CountryInfo
Available on crate feature wifi only.
impl From<[u8; 2]> for CountryInfo
Available on crate feature
wifi only.Source§impl Hash for CountryInfo
Available on crate feature wifi only.
impl Hash for CountryInfo
Available on crate feature
wifi only.Source§impl PartialEq for CountryInfo
Available on crate feature wifi only.
impl PartialEq for CountryInfo
Available on crate feature
wifi only.impl Copy for CountryInfo
Available on crate feature
wifi only.impl Eq for CountryInfo
Available on crate feature
wifi only.impl StructuralPartialEq for CountryInfo
Available on crate feature
wifi only.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)