#[repr(u8)]pub enum RegionCode {
NorthAmerica = 1,
China1 = 6,
Europe = 8,
China2 = 10,
FullFrequencyBand = 255,
}Expand description
Region code values documented for Set/Get Current Region commands.
Variants§
NorthAmerica = 1
North America (902-928 MHz), code 0x01.
China1 = 6
China 1 (920-925 MHz), code 0x06.
Europe = 8
Europe (865-867 MHz), code 0x08.
China2 = 10
China 2 (840-845 MHz), code 0x0A.
FullFrequencyBand = 255
Full Frequency Band (840-960 MHz), code 0xFF.
Implementations§
Trait Implementations§
Source§impl Clone for RegionCode
impl Clone for RegionCode
Source§fn clone(&self) -> RegionCode
fn clone(&self) -> RegionCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RegionCode
impl Debug for RegionCode
Source§impl Display for RegionCode
impl Display for RegionCode
Source§impl From<RegionCode> for u8
impl From<RegionCode> for u8
Source§fn from(value: RegionCode) -> Self
fn from(value: RegionCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RegionCode
impl PartialEq for RegionCode
Source§fn eq(&self, other: &RegionCode) -> bool
fn eq(&self, other: &RegionCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RegionCode
impl Eq for RegionCode
impl StructuralPartialEq for RegionCode
Auto Trait Implementations§
impl Freeze for RegionCode
impl RefUnwindSafe for RegionCode
impl Send for RegionCode
impl Sync for RegionCode
impl Unpin for RegionCode
impl UnsafeUnpin for RegionCode
impl UnwindSafe for RegionCode
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