Struct resol_vbus::PacketSpec [] [src]

pub struct PacketSpec {
    pub packet_id: String,
    pub channel: u8,
    pub destination_address: u16,
    pub source_address: u16,
    pub command: u16,
    pub destination_device: Arc<DeviceSpec>,
    pub source_device: Arc<DeviceSpec>,
    pub name: String,
    pub fields: Vec<PacketFieldSpec>,
}

Contains information about a VBus packet and its fields.

Fields

A packet identifier.

The VBus channel to packet was sent to.

The destination VBus address the packet was sent to.

The source VBus address to packet was send from.

The VBus command of the packet.

The DeviceSpec containing information about the destination VBus device.

The DeviceSpec containing information about the source VBus device.

The name of the packet, containing channel, source and optionally destination names.

The fields contained in the frame payload of the VBus packet.

Methods

impl PacketSpec
[src]

Get a PacketFieldSpec by its field ID.

Trait Implementations

impl Debug for PacketSpec
[src]

Formats the value using the given formatter.