Trait bitcoin::network::encodable::ConsensusEncodable [] [src]

pub trait ConsensusEncodable<S: SimpleEncoder> {
    fn consensus_encode(&self, e: &mut S) -> Result<(), S::Error>;
}

Data which can be encoded in a consensus-consistent way

Required Methods

fn consensus_encode(&self, e: &mut S) -> Result<(), S::Error>

Encode an object with a well-defined format

Implementors