[−][src]Struct lorawan::maccommands::ChannelMask
ChannelMask represents the ChannelMask from LoRaWAN.
Implementations
impl ChannelMask
[src]
pub fn new(data: &[u8]) -> Result<Self, &str>
[src]
Constructs a new ChannelMask from the provided data.
pub fn new_from_raw(data: &[u8]) -> Self
[src]
Constructs a new ChannelMask from the provided data, without verifying if they are admissible.
Improper use of this method could lead to panic during runtime!
pub fn is_enabled(&self, index: usize) -> Result<bool, &str>
[src]
Verifies if a given channel is enabled.
pub fn statuses(&self) -> [bool; 16]
[src]
Provides information for each of the 16 channels if they are enabled.
Trait Implementations
impl AsRef<[u8]> for ChannelMask
[src]
impl Debug for ChannelMask
[src]
impl From<[u8; 2]> for ChannelMask
[src]
impl PartialEq<ChannelMask> for ChannelMask
[src]
pub fn eq(&self, other: &ChannelMask) -> bool
[src]
pub fn ne(&self, other: &ChannelMask) -> bool
[src]
impl StructuralPartialEq for ChannelMask
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChannelMask
[src]
impl Send for ChannelMask
[src]
impl Sync for ChannelMask
[src]
impl Unpin for ChannelMask
[src]
impl UnwindSafe for ChannelMask
[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>,