pub enum ErrorCode {
IO,
InputInvalid,
FileUnexpected,
DatabaseCorrupted,
}
Expand description
All possible error cases that can be return by API calls in ThetaDB.
Variants§
IO
An error occured during an I/O operation.
InputInvalid
The input (e.g., key, value) is invalid.
FileUnexpected
The database file is not in the expected format or state.
DatabaseCorrupted
The database is corrupted.
Trait Implementations§
source§impl PartialEq for ErrorCode
impl PartialEq for ErrorCode
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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