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
header: Header
The shared Header
of all VBus protocol types.
command: u16
The command of this Datagram
.
param16: i16
The 16-bit parameter attached to this Datagram
.
param32: i32
The 32-bit parameter attached to this Datagram
.
Methods
impl Datagram
[src]
fn to_id_string(&self) -> String
Creates an ID string for this Datagram
.
Trait Implementations
impl Clone for Datagram
[src]
fn clone(&self) -> Datagram
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more