pub trait EnvelopedEncodable {
    // Required methods
    fn type_id(&self) -> Option<u8>;
    fn encode_payload(&self) -> BytesMut;

    // Provided method
    fn encode(&self) -> BytesMut { ... }
}
Expand description

Encodable typed transactions.

Required Methods§

fn type_id(&self) -> Option<u8>

Type Id of the transaction.

fn encode_payload(&self) -> BytesMut

Encode inner payload.

Provided Methods§

fn encode(&self) -> BytesMut

Convert self to an owned vector.

Implementors§