pub enum SerializationError {
NotEnoughSpace,
InvalidData,
UnexpectedFlags,
IoError(Error),
}
Expand description
This is an error that could occur during serialization
Variants§
NotEnoughSpace
During serialization, we didn’t have enough space to write extra info.
InvalidData
During serialization, the data was invalid.
UnexpectedFlags
During serialization, non-empty flags were given where none were expected.
IoError(Error)
During serialization, we countered an I/O error.
Trait Implementations§
Source§impl Debug for SerializationError
impl Debug for SerializationError
Source§impl Display for SerializationError
impl Display for SerializationError
Source§impl From<Error> for SerializationError
impl From<Error> for SerializationError
Source§fn from(e: Error) -> SerializationError
fn from(e: Error) -> SerializationError
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