pub enum InsertPairError {
DuplicateKey(Key),
Deser(Error),
InvalidKeyDataEmpty(Key),
InvalidKeyDataNotEmpty(Key),
ValueWrongLength(usize, usize),
}Expand description
Error inserting a key-value pair.
Variants§
DuplicateKey(Key)
Keys within key-value map should never be duplicated.
Deser(Error)
Error deserializing raw value.
InvalidKeyDataEmpty(Key)
Key should contain data.
InvalidKeyDataNotEmpty(Key)
Key should not contain data.
ValueWrongLength(usize, usize)
Value was not the correct length (got, expected).
Trait Implementations§
Source§impl Debug for InsertPairError
impl Debug for InsertPairError
Source§impl Display for InsertPairError
impl Display for InsertPairError
Source§impl Error for InsertPairError
Available on crate feature std only.
impl Error for InsertPairError
Available on crate feature
std only.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 InsertPairError
impl From<Error> for InsertPairError
Source§impl From<InsertPairError> for DecodeError
impl From<InsertPairError> for DecodeError
Source§fn from(e: InsertPairError) -> Self
fn from(e: InsertPairError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InsertPairError
impl !RefUnwindSafe for InsertPairError
impl Send for InsertPairError
impl Sync for InsertPairError
impl Unpin for InsertPairError
impl UnsafeUnpin for InsertPairError
impl !UnwindSafe for InsertPairError
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