pub enum SerializationError {
BincodeError(EncodeError),
WouldOverflow(usize),
}
Expand description
A serialization error.
Variants§
BincodeError(EncodeError)
A bincode encoding error occurred.
WouldOverflow(usize)
Byte stuffing would overflow the provided buffer. At least the contained amount of bytes is required.
Trait Implementations§
Source§impl Debug for SerializationError
impl Debug for SerializationError
Source§impl From<EncodeError> for SerializationError
impl From<EncodeError> for SerializationError
Source§fn from(value: EncodeError) -> Self
fn from(value: EncodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SerializationError
impl !RefUnwindSafe for SerializationError
impl Send for SerializationError
impl Sync for SerializationError
impl Unpin for SerializationError
impl !UnwindSafe for SerializationError
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