pub enum KeyDictError {
TruncatedData,
BadMagic,
UnsupportedVersion(u8),
InvalidName,
Varint(ValueError),
}Expand description
Errors produced when (de)serializing a KeyDictionary.
Variants§
TruncatedData
Buffer is too short to hold the header or a declared name.
BadMagic
First 4 bytes do not match b"RKDX".
UnsupportedVersion(u8)
Version byte is not VERSION.
InvalidName
A field name is not valid UTF-8.
Varint(ValueError)
A varint length prefix could not be decoded.
Trait Implementations§
Source§impl Debug for KeyDictError
impl Debug for KeyDictError
Source§impl Display for KeyDictError
impl Display for KeyDictError
Source§impl Error for KeyDictError
impl Error for KeyDictError
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 From<ValueError> for KeyDictError
impl From<ValueError> for KeyDictError
Source§fn from(e: ValueError) -> Self
fn from(e: ValueError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KeyDictError
impl PartialEq for KeyDictError
Source§fn eq(&self, other: &KeyDictError) -> bool
fn eq(&self, other: &KeyDictError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyDictError
Auto Trait Implementations§
impl Freeze for KeyDictError
impl RefUnwindSafe for KeyDictError
impl Send for KeyDictError
impl Sync for KeyDictError
impl Unpin for KeyDictError
impl UnsafeUnpin for KeyDictError
impl UnwindSafe for KeyDictError
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