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 Error for SerializationError
impl Error for SerializationError
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<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