Struct lorawan::maccommands::ChannelMask
source · [−]pub struct ChannelMask(_);
Expand description
ChannelMask represents the ChannelMask from LoRaWAN.
Implementations
sourceimpl ChannelMask
impl ChannelMask
sourcepub fn new(data: &[u8]) -> Result<Self, &str>
pub fn new(data: &[u8]) -> Result<Self, &str>
Constructs a new ChannelMask from the provided data.
sourcepub fn new_from_raw(data: &[u8]) -> Self
pub fn new_from_raw(data: &[u8]) -> Self
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!
Trait Implementations
sourceimpl Debug for ChannelMask
impl Debug for ChannelMask
sourceimpl PartialEq<ChannelMask> for ChannelMask
impl PartialEq<ChannelMask> for ChannelMask
sourcefn eq(&self, other: &ChannelMask) -> bool
fn eq(&self, other: &ChannelMask) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChannelMask) -> bool
fn ne(&self, other: &ChannelMask) -> bool
This method tests for !=
.
impl StructuralPartialEq for ChannelMask
Auto Trait Implementations
impl RefUnwindSafe for ChannelMask
impl Send for ChannelMask
impl Sync for ChannelMask
impl Unpin for ChannelMask
impl UnwindSafe for ChannelMask
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more