Struct resol_vbus::Header
[−]
[src]
pub struct Header { pub timestamp: DateTime<UTC>, pub channel: u8, pub destination_address: u16, pub source_address: u16, pub protocol_version: u8, }
All VBus data types consist of a Header
element.
Fields
timestamp: DateTime<UTC>
The timestamp when this Header
was received.
channel: u8
The channel number on which this Header
was received.
destination_address: u16
The destination address of this Header
.
source_address: u16
The source address of this Header
.
protocol_version: u8
The VBus protocol version of this Header
.
Methods
impl Header
[src]
fn to_id_string(&self) -> String
Creates an ID prefix for this Header
.
Trait Implementations
impl Clone for Header
[src]
fn clone(&self) -> Header
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