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§

pub 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: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.