pub trait DatabaseDecodable: Sized {
    // Required method
    fn db_decode(bytes: &[u8]) -> Result<Self, DecoderError>;
}

Required Methods§

source

fn db_decode(bytes: &[u8]) -> Result<Self, DecoderError>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DatabaseDecodable for u64

source§

fn db_decode(bytes: &[u8]) -> Result<u64, DecoderError>

source§

impl DatabaseDecodable for BlockHeader

source§

fn db_decode(bytes: &[u8]) -> Result<Self, DecoderError>

source§

impl DatabaseDecodable for H256

source§

fn db_decode(bytes: &[u8]) -> Result<H256, DecoderError>

source§

impl DatabaseDecodable for TransactionIndex

source§

fn db_decode(bytes: &[u8]) -> Result<TransactionIndex, DecoderError>

Implementors§