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)>
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.