Enum bonsaidb::core::key::NextValueError
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§
§impl Clone for NextValueError
impl Clone for NextValueError
§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 more§impl Debug for NextValueError
impl Debug for NextValueError
§impl<'de> Deserialize<'de> for NextValueError
impl<'de> Deserialize<'de> for NextValueError
§fn deserialize<__D>(
__deserializer: __D
) -> Result<NextValueError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<NextValueError, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for NextValueError
impl Display for NextValueError
§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()
§impl Serialize for NextValueError
impl Serialize for NextValueError
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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