pub trait ToPacketId {
    fn to_packet_id(&self) -> Result<PacketId>;
}
Expand description

A trait to get a PacketId for a given value.

Required Methods§

Get the PacketId for a given value.

Implementations on Foreign Types§

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());

Implementors§