pub trait Encodable {
    fn consensus_encode<W: Write + ?Sized>(
        &self,
        writer: &mut W
    ) -> Result<usize, Error>; }
Expand description

Data which can be encoded in a consensus-consistent way

Required Methods

Encode an object with a well-defined format. Returns the number of bytes written on success.

The only errors returned are errors propagated from the writer.

Implementations on Foreign Types

Implementors