pub enum Error {
IoError(Error),
InvalidFormat(String),
KeySerializationError(String),
KeyDeserializationError(String),
BuildError(String),
QueryError(String),
NotImplemented(String),
Other(String),
HttpError(HttpError),
PayloadOffsetNotInCache,
}Expand description
Custom error type for StaticBTree operations.
Variants§
IoError(Error)
Errors originating from the underlying Read/Seek/Write operations.
InvalidFormat(String)
Errors indicating the data format is incorrect (e.g., bad magic bytes, wrong version).
KeySerializationError(String)
Errors during the serialization of a key.
KeyDeserializationError(String)
Errors during the deserialization of a key.
BuildError(String)
Errors specific to the tree building process (e.g., unsorted input).
QueryError(String)
Errors specific to querying (e.g., trying to access invalid node index).
NotImplemented(String)
Used when an operation requires a feature not yet implemented.
Other(String)
Used when an operation fails due to an unexpected condition.
HttpError(HttpError)
Used when an operation fails due to an HTTP error.
PayloadOffsetNotInCache
Requested payload offset is not in the cache
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more