Struct portus::serialize::RawMsg [−][src]
A raw messge buffer with a parsed CCP header.
Fields
typ: u8
len: u32
sid: u32
Methods
impl<'a> RawMsg<'a>
[src]
impl<'a> RawMsg<'a>
pub fn get_bytes(&self) -> Result<&'a [u8]>
[src]
pub fn get_bytes(&self) -> Result<&'a [u8]>
For predefined messages, bytes blob is whatever's left (may be nothing) For other message types, just return the bytes blob
Trait Implementations
impl<'a> Clone for RawMsg<'a>
[src]
impl<'a> Clone for RawMsg<'a>
fn clone(&self) -> RawMsg<'a>
[src]
fn clone(&self) -> RawMsg<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for RawMsg<'a>
[src]
impl<'a> Debug for RawMsg<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> PartialEq for RawMsg<'a>
[src]
impl<'a> PartialEq for RawMsg<'a>