pub struct RadioRegion(/* private fields */);
Expand description
Represents a radio regulatory region/domain.
See [crate::Radio::get_region()
] and [crate::Radio::set_region()
].
Implementations§
Source§impl RadioRegion
impl RadioRegion
Sourcepub fn from_bytes(bytes: [u8; 2]) -> RadioRegion
pub fn from_bytes(bytes: [u8; 2]) -> RadioRegion
Creates an instance of RadioRegion
from an array of two bytes.
Trait Implementations§
Source§impl Clone for RadioRegion
impl Clone for RadioRegion
Source§fn clone(&self) -> RadioRegion
fn clone(&self) -> RadioRegion
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 RadioRegion
impl Debug for RadioRegion
Source§impl Default for RadioRegion
impl Default for RadioRegion
Source§fn default() -> RadioRegion
fn default() -> RadioRegion
Returns the “default value” for a type. Read more
Source§impl From<RadioRegion> for [u8; 2]
impl From<RadioRegion> for [u8; 2]
Source§fn from(x: RadioRegion) -> Self
fn from(x: RadioRegion) -> Self
Converts to this type from the input type.
Source§impl From<RadioRegion> for u16
impl From<RadioRegion> for u16
Source§fn from(x: RadioRegion) -> Self
fn from(x: RadioRegion) -> Self
Converts to this type from the input type.
Source§impl From<u16> for RadioRegion
impl From<u16> for RadioRegion
Source§impl Hash for RadioRegion
impl Hash for RadioRegion
Source§impl PartialEq for RadioRegion
impl PartialEq for RadioRegion
Source§impl ToString for RadioRegion
impl ToString for RadioRegion
Source§impl TryFrom<&str> for RadioRegion
impl TryFrom<&str> for RadioRegion
Source§impl TryFrom<String> for RadioRegion
impl TryFrom<String> for RadioRegion
impl Copy for RadioRegion
impl Eq for RadioRegion
impl StructuralPartialEq for RadioRegion
Auto Trait Implementations§
impl Freeze for RadioRegion
impl RefUnwindSafe for RadioRegion
impl Send for RadioRegion
impl Sync for RadioRegion
impl Unpin for RadioRegion
impl UnwindSafe for RadioRegion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)