[][src]Trait async_resol_vbus::ToPacketId

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

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.

Loading content...

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());
Loading content...

Implementors

impl ToPacketId for Packet[src]

impl ToPacketId for PacketId[src]

Loading content...