pub enum KeraDbError {
LibraryLoad(String),
Native(String),
Json(Error),
Utf8(String),
NullPointer(String),
Closed,
Other(String),
}Expand description
Primary error type for all KeraDB operations.
Variants§
LibraryLoad(String)
The native library could not be loaded.
Native(String)
A native FFI call returned an error string.
Json(Error)
A JSON serialization or deserialization error.
Utf8(String)
A string contained invalid UTF-8.
NullPointer(String)
A null pointer was returned where a valid pointer was expected.
Closed
An operation was attempted on a closed database.
Other(String)
A generic, context-free error string.
Trait Implementations§
Source§impl Debug for KeraDbError
impl Debug for KeraDbError
Source§impl Display for KeraDbError
impl Display for KeraDbError
Source§impl Error for KeraDbError
impl Error for KeraDbError
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 KeraDbError
impl !RefUnwindSafe for KeraDbError
impl Send for KeraDbError
impl Sync for KeraDbError
impl Unpin for KeraDbError
impl UnsafeUnpin for KeraDbError
impl !UnwindSafe for KeraDbError
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