pub enum Error {
Partition(PartitionError),
Roaring(RoaringError),
Bucket(BucketError),
DbCopy(DbCopyError),
InvalidInput(String),
TransactionFailed(String),
}Expand description
Main error type exposed to users of the crate.
This provides a simple interface for facade users while wrapping more specific internal error types for debugging and advanced usage.
Variants§
Partition(PartitionError)
Errors from the partition layer (generic storage mechanics)
Roaring(RoaringError)
Errors from the roaring layer (bitmap-specific operations)
Bucket(BucketError)
Errors from the bucket layer (bucket-specific operations)
DbCopy(DbCopyError)
Errors from the database copy utilities
InvalidInput(String)
Invalid input parameters
TransactionFailed(String)
Transaction-related errors
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()
Source§impl From<BucketError> for Error
impl From<BucketError> for Error
Source§fn from(err: BucketError) -> Self
fn from(err: BucketError) -> Self
Converts to this type from the input type.
Source§impl From<DbCopyError> for Error
impl From<DbCopyError> for Error
Source§fn from(err: DbCopyError) -> Self
fn from(err: DbCopyError) -> Self
Converts to this type from the input type.
Source§impl From<PartitionError> for Error
impl From<PartitionError> for Error
Source§fn from(err: PartitionError) -> Self
fn from(err: PartitionError) -> Self
Converts to this type from the input type.
Source§impl From<RoaringError> for Error
impl From<RoaringError> for Error
Source§fn from(err: RoaringError) -> Self
fn from(err: RoaringError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for Error
impl From<StorageError> for Error
Source§fn from(err: StorageError) -> Self
fn from(err: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin 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