pub struct ChannelMask { /* private fields */ }Expand description
IEEE 802.15.4 Channel Mask TLV
FIXME: Currently only supports a single channel mask entry.
The TLV is required to support multiple channel mask entries, but practically, this is rarely used.
Implementations§
Source§impl ChannelMask
impl ChannelMask
Trait Implementations§
Source§impl Clone for ChannelMask
impl Clone for ChannelMask
Source§fn clone(&self) -> ChannelMask
fn clone(&self) -> ChannelMask
Returns a duplicate of the value. Read more
1.0.0 · 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 ChannelMask
impl Debug for ChannelMask
Source§impl DecodeTlvUnchecked for ChannelMask
impl DecodeTlvUnchecked for ChannelMask
Source§impl Default for ChannelMask
impl Default for ChannelMask
Source§impl Display for ChannelMask
impl Display for ChannelMask
Source§impl FromStr for ChannelMask
impl FromStr for ChannelMask
Source§impl PartialEq for ChannelMask
impl PartialEq for ChannelMask
Source§impl TlvConstantMetadata for &ChannelMaskwhere
ChannelMask: TlvConstantMetadata,
impl TlvConstantMetadata for &ChannelMaskwhere
ChannelMask: TlvConstantMetadata,
Source§impl TlvConstantMetadata for ChannelMask
impl TlvConstantMetadata for ChannelMask
Source§impl TlvLength for &ChannelMask
impl TlvLength for &ChannelMask
Source§impl TlvLength for ChannelMask
impl TlvLength for ChannelMask
Source§impl TlvType for &ChannelMask
impl TlvType for &ChannelMask
Source§impl TryEncodeTlv for ChannelMask
impl TryEncodeTlv for ChannelMask
Source§fn try_encode_tlv(&self, buffer: &mut [u8]) -> Result<usize, TwineTlvError>
fn try_encode_tlv(&self, buffer: &mut [u8]) -> Result<usize, TwineTlvError>
Encode some data type into the TLV format. Read more
Source§impl TryEncodeTlvValue for ChannelMask
impl TryEncodeTlvValue for ChannelMask
Source§fn try_encode_tlv_value(
&self,
buffer: &mut [u8],
) -> Result<usize, TwineTlvError>
fn try_encode_tlv_value( &self, buffer: &mut [u8], ) -> Result<usize, TwineTlvError>
Encode the value portion of a TLV data type. Read more
impl Copy for ChannelMask
impl Eq for ChannelMask
impl StructuralPartialEq for ChannelMask
impl TlvMetadata for &ChannelMask
impl TlvMetadata for ChannelMask
Auto Trait Implementations§
impl Freeze for ChannelMask
impl RefUnwindSafe for ChannelMask
impl Send for ChannelMask
impl Sync for ChannelMask
impl Unpin for ChannelMask
impl UnsafeUnpin for ChannelMask
impl UnwindSafe for ChannelMask
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