reth_db_api::table

Trait Decompress

Source
pub trait Decompress:
    Send
    + Sync
    + Sized
    + 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§

Source

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

Decompresses data coming from the database.

Provided Methods§

Source

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§

Source§

impl Decompress for Account

Source§

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

Source§

impl Decompress for Address

Source§

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

Source§

impl Decompress for B256

Source§

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

Source§

impl Decompress for BranchNodeCompact

Source§

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

Source§

impl Decompress for Bytecode

Source§

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

Source§

impl Decompress for Bytes

Source§

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

Source§

impl Decompress for GenesisAccount

Source§

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

Source§

impl Decompress for Header

Source§

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

Source§

impl Decompress for IntegerList

Source§

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

Source§

impl Decompress for Log

Source§

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

Source§

impl Decompress for PruneCheckpoint

Source§

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

Source§

impl Decompress for Receipt

Source§

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

Source§

impl Decompress for StageCheckpoint

Source§

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

Source§

impl Decompress for StorageEntry

Source§

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

Source§

impl Decompress for StorageTrieEntry

Source§

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

Source§

impl Decompress for StoredNibbles

Source§

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

Source§

impl Decompress for StoredNibblesSubKey

Source§

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

Source§

impl Decompress for TransactionSigned

Source§

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

Source§

impl Decompress for TransactionSignedNoHash

Source§

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

Source§

impl Decompress for TxType

Source§

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

Implementors§