reth_db::common

Type Alias PairResult

pub type PairResult<T> = Result<Option<(<T as Table>::Key, <T as Table>::Value)>, DatabaseError>;
Expand description

A fallible key-value pair that may or may not exist.

The Result represents that the operation might fail, while the Option represents whether or not the entry exists.

Aliased Type§

enum PairResult<T> {
    Ok(Option<(<T as Table>::Key, <T as Table>::Value)>),
    Err(DatabaseError),
}

Variants§

§1.0.0

Ok(Option<(<T as Table>::Key, <T as Table>::Value)>)

Contains the success value

§1.0.0

Err(DatabaseError)

Contains the error value

Layout§

Note: Encountered an error during type layout; the type failed to be normalized.