reth_db::table

Trait Decompress

pub trait Decompress:
    Sized
    + Send
    + Sync
    + Debug {
    // Required method
    fn decompress(value: &[u8]) -> Result<Self, DatabaseError>;

    // Provided method
    fn decompress_owned(value: Vec<u8>) -> Result<Self, DatabaseError> { ... }
}
Expand description

Trait that will transform the data to be read from the DB.

Required Methods§

fn decompress(value: &[u8]) -> Result<Self, DatabaseError>

Decompresses data coming from the database.

Provided Methods§

fn decompress_owned(value: Vec<u8>) -> Result<Self, DatabaseError>

Decompresses owned data coming from the database.

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§

§

impl Decompress for Account

§

fn decompress(value: &[u8]) -> Result<Account, DatabaseError>

§

impl Decompress for Address

§

fn decompress(value: &[u8]) -> Result<Address, DatabaseError>

§

impl Decompress for BranchNodeCompact

§

fn decompress(value: &[u8]) -> Result<BranchNodeCompact, DatabaseError>

§

impl Decompress for Bytecode

§

fn decompress(value: &[u8]) -> Result<Bytecode, DatabaseError>

§

impl Decompress for Bytes

§

fn decompress(value: &[u8]) -> Result<Bytes, DatabaseError>

§

impl Decompress for FixedBytes<32>

§

fn decompress(value: &[u8]) -> Result<FixedBytes<32>, DatabaseError>

§

impl Decompress for GenesisAccount

§

fn decompress(value: &[u8]) -> Result<GenesisAccount, DatabaseError>

§

impl Decompress for Header

§

fn decompress(value: &[u8]) -> Result<Header, DatabaseError>

§

impl Decompress for IntegerList

§

fn decompress(value: &[u8]) -> Result<IntegerList, DatabaseError>

§

impl Decompress for Log

§

fn decompress(value: &[u8]) -> Result<Log, DatabaseError>

§

impl Decompress for PruneCheckpoint

§

fn decompress(value: &[u8]) -> Result<PruneCheckpoint, DatabaseError>

§

impl Decompress for Receipt

§

fn decompress(value: &[u8]) -> Result<Receipt, DatabaseError>

§

impl Decompress for StageCheckpoint

§

fn decompress(value: &[u8]) -> Result<StageCheckpoint, DatabaseError>

§

impl Decompress for StorageEntry

§

fn decompress(value: &[u8]) -> Result<StorageEntry, DatabaseError>

§

impl Decompress for StorageTrieEntry

§

fn decompress(value: &[u8]) -> Result<StorageTrieEntry, DatabaseError>

§

impl Decompress for StoredNibbles

§

fn decompress(value: &[u8]) -> Result<StoredNibbles, DatabaseError>

§

impl Decompress for StoredNibblesSubKey

§

fn decompress(value: &[u8]) -> Result<StoredNibblesSubKey, DatabaseError>

§

impl Decompress for TransactionSignedNoHash

§

fn decompress(value: &[u8]) -> Result<TransactionSignedNoHash, DatabaseError>

§

impl Decompress for TxType

§

fn decompress(value: &[u8]) -> Result<TxType, DatabaseError>

Implementors§