Trait portus::serialize::AsRawMsg [−][src]
pub trait AsRawMsg { fn get_hdr(&self) -> (u8, u32, u32); fn get_bytes<W: Write>(&self, w: &mut W) -> Result<()>; fn from_raw_msg(msg: RawMsg) -> Result<Self>
where
Self: Sized; fn get_u32s<W: Write>(&self, _: &mut W) -> Result<()> { ... } fn get_u64s<W: Write>(&self, _: &mut W) -> Result<()> { ... } }
Types that can be serialized.
Required Methods
fn get_hdr(&self) -> (u8, u32, u32)
fn get_bytes<W: Write>(&self, w: &mut W) -> Result<()>
fn from_raw_msg(msg: RawMsg) -> Result<Self> where
Self: Sized,
Self: Sized,