[][src]Struct async_resol_vbus::PacketId

pub struct PacketId(pub u8, pub u16, pub u16, pub u16);

A tuple of identification information about a Packet value.

It consists of the following parts:

  • the channel
  • the destination address
  • the source address
  • the command

Methods

impl PacketId[src]

pub fn packet_id_string(&self) -> String[src]

Create an ID string for the given PacketId value.

Examples

use resol_vbus::PacketId;

assert_eq!("11_1213_1415_10_1718", PacketId(0x11, 0x1213, 0x1415, 0x1718).packet_id_string());

Trait Implementations

impl Clone for PacketId[src]

impl Copy for PacketId[src]

impl Debug for PacketId[src]

impl Eq for PacketId[src]

impl Hash for PacketId[src]

impl Ord for PacketId[src]

impl PartialEq<PacketId> for PacketId[src]

impl PartialOrd<PacketId> for PacketId[src]

impl StructuralEq for PacketId[src]

impl StructuralPartialEq for PacketId[src]

impl ToPacketId for PacketId[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.