Struct resol_vbus::Telegram
[−]
[src]
pub struct Telegram { pub header: Header, pub command: u8, pub frame_data: [u8; 21], }
The Telegram
type stores information according to the VBus protocol version 3.x.
Fields
header: Header
The shared Header
of all VBus protocol types.
command: u8
The command of this Telegram
.
frame_data: [u8; 21]
The actual data from the frames attached to this Telegram
.
Methods
impl Telegram
[src]
fn frame_count_from_command(command: u8) -> u8
Get number of frames from a VBus protocol version 3.x command.
fn frame_count(&self) -> u8
Get number of 7-byte frames attached to this Telegram
.
fn to_id_string(&self) -> String
Creates an ID string for this Telegram
.
Trait Implementations
impl Debug for Telegram
[src]
impl Clone for Telegram
[src]
fn clone(&self) -> Self
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