Trait DatabaseDecodable

Source
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>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§