Type Alias TreeError

Source
pub type TreeError = NodeError;
Expand description

An error encountered when interacting with a B+ tree.

Aliased Type§

enum TreeError {
    MaxKeySize(usize),
    MaxValueSize(usize),
    UnexpectedNodeType(u16),
    AlreadyExists,
    KeyNotFound,
}

Variants§

§

MaxKeySize(usize)

Key size exceeds maximum limit.

§

MaxValueSize(usize)

Value size exceeds maximum limit.

§

UnexpectedNodeType(u16)

Unexpected node type. This represents data corruption.

§

AlreadyExists

Key already exists.

§

KeyNotFound

Key not found.