pub struct PacketId(pub u8, pub u16, pub u16, pub u16);
Expand description
A tuple of identification information about a Packet
value.
It consists of the following parts:
- the channel
- the destination address
- the source address
- the command
Tuple Fields§
§0: u8
§1: u16
§2: u16
§3: u16
Implementations§
Trait Implementations§
Source§impl Ord for PacketId
impl Ord for PacketId
Source§impl PartialOrd for PacketId
impl PartialOrd for PacketId
Source§impl ToPacketId for PacketId
impl ToPacketId for PacketId
impl Copy for PacketId
impl Eq for PacketId
impl StructuralPartialEq for PacketId
Auto Trait Implementations§
impl Freeze for PacketId
impl RefUnwindSafe for PacketId
impl Send for PacketId
impl Sync for PacketId
impl Unpin for PacketId
impl UnwindSafe for PacketId
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