pub trait Encodable {
    fn consensus_encode<W: Write>(&self, writer: 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