pub enum SerError {
Msg(String),
Wrapped(WrappedError),
UnexpectedEOB,
BufferNotFilled,
}
Expand description
Serialization error
Variants§
Msg(String)
Abitrary error message.
Wrapped(WrappedError)
A wrapped error from lower in the call stack.
UnexpectedEOB
The end of the buffer was reached before serialization finished.
BufferNotFilled
Serialization did not fill the buffer.
Implementations§
Trait Implementations§
Source§impl Error for SerError
impl Error for SerError
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<FromBytesWithNulError> for SerError
impl From<FromBytesWithNulError> for SerError
Source§fn from(e: FromBytesWithNulError) -> Self
fn from(e: FromBytesWithNulError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for SerError
impl From<FromUtf8Error> for SerError
Source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<WrappedError> for SerError
impl From<WrappedError> for SerError
Source§fn from(e: WrappedError) -> Self
fn from(e: WrappedError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SerError
impl !RefUnwindSafe for SerError
impl Send for SerError
impl Sync for SerError
impl Unpin for SerError
impl !UnwindSafe for SerError
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