reth_db::table

Trait Decompress

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

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 StageCheckpoint

Source§

impl Decompress for StoredNibbles

Source§

impl Decompress for StoredNibblesSubKey

Source§

impl Decompress for StorageTrieEntry

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 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 FixedBytes<32>

Source§

fn decompress(value: &[u8]) -> Result<FixedBytes<32>, 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 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 StorageEntry

Source§

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

Source§

impl Decompress for TransactionSigned

Source§

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

Source§

impl Decompress for TxType

Source§

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

Implementors§