pub enum BootnodeError {
Show 16 variants
SnapshotTooStale {
age_secs: u64,
max_allowed: u64,
},
UnsupportedSnapshotFormat(u8),
UnsupportedDeltaFormat(u8),
Io(Error),
Database(DatabaseError),
Table(TableError),
Transaction(Box<TransactionError>),
Storage(StorageError),
Commit(CommitError),
SerializeFailed(Error),
DeserializeFailed(Error),
InvalidCertData(String),
SnapshotBodyTooLarge {
size: usize,
max: usize,
},
SnapshotBodyLenMismatch {
header_body_len: u64,
actual: u64,
},
DeltaFieldTooLarge {
field: &'static str,
size: usize,
max: usize,
},
FetchRangeTooLarge {
requested: u64,
max: u64,
},
}Expand description
Errors returned by bootnode operations.
Variants§
SnapshotTooStale
The latest snapshot is older than the consumer-configured maximum.
Emitted by consumers (e.g., operator bootstrap per §S.19), never constructed inside this crate.
Fields
UnsupportedSnapshotFormat(u8)
On-disk snapshot has an unrecognised format_version.
UnsupportedDeltaFormat(u8)
On-disk delta entry has an unrecognised format_version.
Io(Error)
Filesystem I/O error (e.g. parent directory creation).
Database(DatabaseError)
redb database error.
Table(TableError)
redb table error.
Transaction(Box<TransactionError>)
redb transaction error.
Storage(StorageError)
redb storage error.
Commit(CommitError)
redb commit error.
SerializeFailed(Error)
Failed to encode a record for on-disk storage.
DeserializeFailed(Error)
On-disk record could not be decoded (corrupt or incompatible format).
InvalidCertData(String)
Deserialized cert bytes failed validation.
SnapshotBodyTooLarge
Snapshot body exceeds the safety limit.
SnapshotBodyLenMismatch
header.body_len does not match the actual body slice length.
DeltaFieldTooLarge
A delta field exceeds the safety limit.
Fields
FetchRangeTooLarge
fetch_range was called with a window wider than the configured limit.
Trait Implementations§
Source§impl Debug for BootnodeError
impl Debug for BootnodeError
Source§impl Display for BootnodeError
impl Display for BootnodeError
Source§impl Error for BootnodeError
impl Error for BootnodeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()