Struct resol_vbus::Datagram [] [src]

pub struct Datagram {
    pub header: Header,
    pub command: u16,
    pub param16: i16,
    pub param32: i32,
}

The Datagram type stores information according to the VBus protocol version 2.x.

Fields

The shared Header of all VBus protocol types.

The command of this Datagram.

The 16-bit parameter attached to this Datagram.

The 32-bit parameter attached to this Datagram.

Methods

impl Datagram
[src]

Creates an ID string for this Datagram.

Trait Implementations

impl Clone for Datagram
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Datagram
[src]

Formats the value using the given formatter.