[−][src]Struct lorawan::maccommands::DataRateRange
DataRateRange represents LoRaWAN DataRateRange.
Implementations
impl DataRateRange
[src]
pub fn new_from_raw(byte: u8) -> DataRateRange
[src]
Constructs a new DataRateRange from the provided byte, without checking for correctness.
pub fn new(byte: u8) -> Result<DataRateRange, &'static str>
[src]
Constructs a new DataRateRange from the provided byte.
pub fn can_build_from(byte: u8) -> Result<(), &'static str>
[src]
Check if the byte can be used to create DataRateRange.
pub fn max_data_rate(&self) -> u8
[src]
The highest data rate allowed on this channel.
pub fn min_data_range(&self) -> u8
[src]
The lowest data rate allowed on this channel.
pub fn raw_value(&self) -> u8
[src]
The integer value of the DataRateRange.
Trait Implementations
impl Debug for DataRateRange
[src]
impl From<u8> for DataRateRange
[src]
impl PartialEq<DataRateRange> for DataRateRange
[src]
pub fn eq(&self, other: &DataRateRange) -> bool
[src]
pub fn ne(&self, other: &DataRateRange) -> bool
[src]
impl StructuralPartialEq for DataRateRange
[src]
Auto Trait Implementations
impl RefUnwindSafe for DataRateRange
[src]
impl Send for DataRateRange
[src]
impl Sync for DataRateRange
[src]
impl Unpin for DataRateRange
[src]
impl UnwindSafe for DataRateRange
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,