Struct resol_vbus::PacketFieldId [−][src]
Expand description
A tuple of identification information about a field in a Packet
value.
It consists of the following parts:
- the packet ID tuple (channel, destination address, source address and command)
- the field ID
Tuple Fields
0: PacketId
1: &'a str
Implementations
Get the packet ID string for a given PacketFieldId
value.
Examples
use resol_vbus::{PacketId, PacketFieldId};
let packet_field_id = PacketFieldId(PacketId(0x11, 0x1213, 0x1415, 0x1718), "012_4_0");
assert_eq!("11_1213_1415_10_1718", packet_field_id.packet_id_string());
Get the packet field ID string for a given PacketFieldId
value.
Examples
use resol_vbus::{PacketId, PacketFieldId};
let packet_field_id = PacketFieldId(PacketId(0x11, 0x1213, 0x1415, 0x1718), "012_4_0");
assert_eq!("11_1213_1415_10_1718_012_4_0", packet_field_id.packet_field_id_string());
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Get the PacketFieldId
for a given value.
Auto Trait Implementations
impl<'a> RefUnwindSafe for PacketFieldId<'a>
impl<'a> Send for PacketFieldId<'a>
impl<'a> Sync for PacketFieldId<'a>
impl<'a> Unpin for PacketFieldId<'a>
impl<'a> UnwindSafe for PacketFieldId<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more