[][src]Trait async_resol_vbus::ToPacketFieldId

pub trait ToPacketFieldId {
    fn to_packet_field_id(&self) -> Result<PacketFieldId, Error>;
}

A trait to get a PacketFieldId for a given value.

Required methods

fn to_packet_field_id(&self) -> Result<PacketFieldId, Error>

Get the PacketFieldId for a given value.

Loading content...

Implementations on Foreign Types

impl ToPacketFieldId for str[src]

fn to_packet_field_id(&self) -> Result<PacketFieldId, Error>[src]

Parse the string into a packet field ID tuple.

Examples

use resol_vbus::{PacketId, PacketFieldId, ToPacketFieldId};

assert_eq!(PacketFieldId(PacketId(0x11, 0x1213, 0x1415, 0x1718), "012_4_0"), "11_1213_1415_10_1718_012_4_0".to_packet_field_id().unwrap());
Loading content...

Implementors

impl<'a> ToPacketFieldId for PacketFieldId<'a>[src]

Loading content...