#[repr(u8)]pub enum PacketType {
Broadcast = 0,
MacAck = 1,
Unicast = 2,
UnicastAckReq = 3,
Multicast = 4,
Reserved5 = 5,
BlindUnicast = 6,
BlindUnicastAckReq = 7,
}Expand description
Packet class encoded in the frame-control field.
Variants§
Broadcast = 0
MacAck = 1
Unicast = 2
UnicastAckReq = 3
Multicast = 4
Reserved5 = 5
BlindUnicast = 6
BlindUnicastAckReq = 7
Implementations§
Source§impl PacketType
impl PacketType
Sourcepub const fn from_bits(value: u8) -> Self
pub const fn from_bits(value: u8) -> Self
Decode a packet type from the three packet-type bits in the FCF.
Sourcepub fn ack_requested(self) -> bool
pub fn ack_requested(self) -> bool
Return whether this packet type requests a MAC ACK.
Sourcepub fn is_routable(self) -> bool
pub fn is_routable(self) -> bool
Return whether this packet type participates in mesh routing/forwarding.
Trait Implementations§
Source§impl Clone for PacketType
impl Clone for PacketType
Source§fn clone(&self) -> PacketType
fn clone(&self) -> PacketType
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PacketType
impl Debug for PacketType
Source§impl PartialEq for PacketType
impl PartialEq for PacketType
impl Copy for PacketType
impl Eq for PacketType
impl StructuralPartialEq for PacketType
Auto Trait Implementations§
impl Freeze for PacketType
impl RefUnwindSafe for PacketType
impl Send for PacketType
impl Sync for PacketType
impl Unpin for PacketType
impl UnwindSafe for PacketType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)