pub enum KeyValueError {
Io {
message: String,
},
Timeout,
CursorNotFound,
Other {
message: String,
},
}
Expand description
Error type for KeyValue operations
Variants§
Trait Implementations§
Source§impl Clone for KeyValueError
impl Clone for KeyValueError
Source§fn clone(&self) -> KeyValueError
fn clone(&self) -> KeyValueError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KeyValueError
impl Debug for KeyValueError
Source§impl<'de> Deserialize<'de> for KeyValueError
impl<'de> Deserialize<'de> for KeyValueError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for KeyValueError
impl Display for KeyValueError
Source§impl Error for KeyValueError
impl Error for KeyValueError
1.30.0 · 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 PartialEq for KeyValueError
impl PartialEq for KeyValueError
Source§impl Serialize for KeyValueError
impl Serialize for KeyValueError
impl Eq for KeyValueError
impl StructuralPartialEq for KeyValueError
Auto Trait Implementations§
impl Freeze for KeyValueError
impl RefUnwindSafe for KeyValueError
impl Send for KeyValueError
impl Sync for KeyValueError
impl Unpin for KeyValueError
impl UnwindSafe for KeyValueError
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