Enum bonsaidb_core::key::NextValueError
source · pub enum NextValueError {
Unsupported,
WouldWrap,
}
Expand description
The error types for Key::next_value()
.
Variants§
Unsupported
The key type does not support this operation.
WouldWrap
Generating a new value would wrap the underlying value.
Trait Implementations§
source§impl Clone for NextValueError
impl Clone for NextValueError
source§fn clone(&self) -> NextValueError
fn clone(&self) -> NextValueError
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 NextValueError
impl Debug for NextValueError
source§impl<'de> Deserialize<'de> for NextValueError
impl<'de> Deserialize<'de> for NextValueError
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 NextValueError
impl Display for NextValueError
source§impl Error for NextValueError
impl Error for NextValueError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 RefUnwindSafe for NextValueError
impl Send for NextValueError
impl Sync for NextValueError
impl Unpin for NextValueError
impl UnwindSafe for NextValueError
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