[−][src]Trait async_resol_vbus::ToPacketId
A trait to get a PacketId
for a given value.
Required methods
fn to_packet_id(&self) -> Result<PacketId, Error>
Get the PacketId
for a given value.
Implementations on Foreign Types
impl ToPacketId for str
[src]
fn to_packet_id(&self) -> Result<PacketId, Error>
[src]
Parse the string into a packet ID tuple.
Examples
use resol_vbus::{PacketId, ToPacketId}; assert_eq!(PacketId(0x11, 0x1213, 0x1415, 0x1718), "11_1213_1415_10_1718".to_packet_id().unwrap());