Struct tk_opc::OpcHeader
[−]
[src]
pub struct OpcHeader { pub channel: u8, pub command: u8, pub length: u16, }
Fields
channel: u8
command: u8
length: u16
Methods
impl OpcHeader
[src]
fn new(buf: &[u8]) -> Self
fn read_header<T: Read>(r: &mut T) -> Result<Self>
fn to_bytes(&self) -> [u8; 4]
fn write_header<T: Write>(&self, w: &mut T) -> Result<()>
Trait Implementations
impl Copy for OpcHeader
[src]
impl Clone for OpcHeader
[src]
fn clone(&self) -> OpcHeader
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