pub trait Decode {
    type Object;

    // Required method
    fn decode(self) -> Result<Self::Object, Error>;
}
Expand description

Conversion from a chain-network byte container data type to an application data object.

Required Associated Types§

Required Methods§

source

fn decode(self) -> Result<Self::Object, Error>

Implementations on Foreign Types§

source§

impl Decode for BlockId

§

type Object = Hash

source§

fn decode(self) -> Result<Self::Object, Error>

source§

impl Decode for Header

§

type Object = Header

source§

fn decode(self) -> Result<Self::Object, Error>

source§

impl Decode for Block

§

type Object = Block

source§

fn decode(self) -> Result<Self::Object, Error>

source§

impl<T, N> Decode for Box<[N]>where N: Decode<Object = T>,

§

type Object = Vec<T, Global>

source§

fn decode(self) -> Result<Vec<T>, Error>

source§

impl Decode for Fragment

source§

impl Decode for NodeId

§

type Object = NodeId

source§

fn decode(self) -> Result<Self::Object, Error>

source§

impl Decode for Node

§

type Object = Gossip

source§

fn decode(self) -> Result<Self::Object, Error>

Implementors§