pub enum SerializationErrorKind {
Show 18 variants
IO(Error),
EncodeError(Error),
DecodeError(Error),
JsonError(Error),
BincodeError(Error),
Base64Error(DecodeError),
BusError(BusError),
Msg(String),
NoPrimarykey,
NoData,
MissingData,
InvalidSerializationFormat,
CollectionDetached,
SerdeError(String),
WeakDio,
SaveParentFirst,
ObjectStillLocked(PrimaryKey),
AlreadyDeleted(PrimaryKey),
// some variants omitted
}Expand description
The kind of an error.
Variants§
IO(Error)
EncodeError(Error)
DecodeError(Error)
JsonError(Error)
BincodeError(Error)
Base64Error(DecodeError)
BusError(BusError)
Msg(String)
A convenient variant for String.
NoPrimarykey
NoData
MissingData
InvalidSerializationFormat
CollectionDetached
SerdeError(String)
WeakDio
SaveParentFirst
ObjectStillLocked(PrimaryKey)
AlreadyDeleted(PrimaryKey)
Implementations§
Source§impl SerializationErrorKind
impl SerializationErrorKind
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations§
Source§impl Debug for SerializationErrorKind
impl Debug for SerializationErrorKind
Source§impl Display for SerializationErrorKind
impl Display for SerializationErrorKind
Source§impl<'a> From<&'a str> for SerializationErrorKind
impl<'a> From<&'a str> for SerializationErrorKind
Source§impl From<SerializationError> for SerializationErrorKind
impl From<SerializationError> for SerializationErrorKind
Source§fn from(e: SerializationError) -> Self
fn from(e: SerializationError) -> Self
Converts to this type from the input type.
Source§impl From<SerializationErrorKind> for SerializationError
impl From<SerializationErrorKind> for SerializationError
Source§fn from(e: SerializationErrorKind) -> Self
fn from(e: SerializationErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SerializationErrorKind
impl !RefUnwindSafe for SerializationErrorKind
impl Send for SerializationErrorKind
impl Sync for SerializationErrorKind
impl Unpin for SerializationErrorKind
impl !UnwindSafe for SerializationErrorKind
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