pub enum DeError {
Msg(String),
Wrapped(WrappedError),
UnexpectedEOB,
BufferNotParsed,
NullError,
NoNullError,
}
Expand description
Deserialization 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 deserialization finished.
BufferNotParsed
Deserialization did not fill the buffer.
NullError
A null byte was found before the end of the serialized
String
.
NoNullError
A null byte was not found at the end of the serialized
String
.
Implementations§
Trait Implementations§
Source§impl Error for DeError
impl Error for DeError
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 DeError
impl From<FromBytesWithNulError> for DeError
Source§fn from(e: FromBytesWithNulError) -> Self
fn from(e: FromBytesWithNulError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for DeError
impl From<FromUtf8Error> for DeError
Source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<WrappedError> for DeError
impl From<WrappedError> for DeError
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 DeError
impl !RefUnwindSafe for DeError
impl Send for DeError
impl Sync for DeError
impl Unpin for DeError
impl !UnwindSafe for DeError
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