Trait clarity_repl::clarity::types::serialization::StacksMessageCodec[][src]

pub trait StacksMessageCodec {
    fn consensus_serialize<W: Write>(&self, fd: &mut W) -> Result<(), NetError>
    where
        Self: Sized
;
fn consensus_deserialize<R: Read>(fd: &mut R) -> Result<Self, NetError>
    where
        Self: Sized
; }

Helper trait for various primitive types that make up Stacks messages

Required methods

fn consensus_serialize<W: Write>(&self, fd: &mut W) -> Result<(), NetError> where
    Self: Sized
[src]

fn consensus_deserialize<R: Read>(fd: &mut R) -> Result<Self, NetError> where
    Self: Sized
[src]

Loading content...

Implementors

Loading content...