pub enum GrausError {
Io(Error),
KeyNotFound,
Serde(Error),
UnexpectedCommandType,
Utf8(FromUtf8Error),
StringError(String),
PredicateNotSatisfied,
}
Expand description
Error type for GrausDb.
Variants§
Io(Error)
IO Error
KeyNotFound
Removing non-existent key error.
Serde(Error)
Serialization or deserialization error.
UnexpectedCommandType
Unexpected command type error. It indicated a corrupted log or a program bug.
Utf8(FromUtf8Error)
Key or value is invalid UTF-8 sequence
StringError(String)
Error with a string message
PredicateNotSatisfied
Predicate passed to update_if was not satisfied.
Trait Implementations§
Source§impl Debug for GrausError
impl Debug for GrausError
Source§impl Display for GrausError
impl Display for GrausError
Source§impl Error for GrausError
impl Error for GrausError
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<Error> for GrausError
impl From<Error> for GrausError
Source§impl From<Error> for GrausError
impl From<Error> for GrausError
Source§impl From<FromUtf8Error> for GrausError
impl From<FromUtf8Error> for GrausError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GrausError
impl !RefUnwindSafe for GrausError
impl Send for GrausError
impl Sync for GrausError
impl Unpin for GrausError
impl !UnwindSafe for GrausError
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