Trait bitcoin::network::serialize::SimpleEncoder [] [src]

pub trait SimpleEncoder {
    type Error;
    fn emit_u64(&mut self, v: u64) -> Result<(), Self::Error>;
fn emit_u32(&mut self, v: u32) -> Result<(), Self::Error>;
fn emit_u16(&mut self, v: u16) -> Result<(), Self::Error>;
fn emit_u8(&mut self, v: u8) -> Result<(), Self::Error>;
fn emit_i64(&mut self, v: i64) -> Result<(), Self::Error>;
fn emit_i32(&mut self, v: i32) -> Result<(), Self::Error>;
fn emit_i16(&mut self, v: i16) -> Result<(), Self::Error>;
fn emit_i8(&mut self, v: i8) -> Result<(), Self::Error>;
fn emit_bool(&mut self, v: bool) -> Result<(), Self::Error>; }

A simple Encoder trait

Associated Types

An encoding error

Required Methods

Output a 64-bit uint

Output a 32-bit uint

Output a 16-bit uint

Output a 8-bit uint

Output a 64-bit int

Output a 32-bit int

Output a 16-bit int

Output a 8-bit int

Output a boolean

Implementors