Struct lorawan::maccommands::DataRateRange
source · pub struct DataRateRange(/* private fields */);
Expand description
DataRateRange represents LoRaWAN DataRateRange.
Implementations§
source§impl DataRateRange
impl DataRateRange
sourcepub fn new_from_raw(byte: u8) -> DataRateRange
pub fn new_from_raw(byte: u8) -> DataRateRange
Constructs a new DataRateRange from the provided byte, without checking for correctness.
sourcepub fn new(byte: u8) -> Result<DataRateRange, Error>
pub fn new(byte: u8) -> Result<DataRateRange, Error>
Constructs a new DataRateRange from the provided byte.
sourcepub fn can_build_from(byte: u8) -> Result<(), Error>
pub fn can_build_from(byte: u8) -> Result<(), Error>
Check if the byte can be used to create DataRateRange.
sourcepub fn max_data_rate(&self) -> u8
pub fn max_data_rate(&self) -> u8
The highest data rate allowed on this channel.
sourcepub fn min_data_rate(&self) -> u8
pub fn min_data_rate(&self) -> u8
The lowest data rate allowed on this channel.
Trait Implementations§
source§impl Debug for DataRateRange
impl Debug for DataRateRange
source§impl From<u8> for DataRateRange
impl From<u8> for DataRateRange
source§impl PartialEq for DataRateRange
impl PartialEq for DataRateRange
impl Eq for DataRateRange
impl StructuralPartialEq for DataRateRange
Auto Trait Implementations§
impl Freeze for DataRateRange
impl RefUnwindSafe for DataRateRange
impl Send for DataRateRange
impl Sync for DataRateRange
impl Unpin for DataRateRange
impl UnwindSafe for DataRateRange
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