Enum bincode::ErrorKind
[−]
[src]
pub enum ErrorKind {
IoError(IoError),
InvalidEncoding {
desc: &'static str,
detail: Option<String>,
},
SizeLimit,
SequenceMustHaveLength,
Custom(String),
}Variants
IoError(IoError)If the error stems from the reader/writer that is being used during (de)serialization, that error will be stored and returned here.
InvalidEncodingIf the bytes in the reader are not decodable because of an invalid
encoding, this error will be returned. This error is only possible
if a stream is corrupted. A stream produced from encode or encode_into
should never produce an InvalidEncoding error.
Fields of InvalidEncoding
desc: &'static str | |
detail: Option<String> |
SizeLimitIf (de)serializing a message takes more than the provided size limit, this error is returned.
SequenceMustHaveLengthCustom(String)Trait Implementations
impl Debug for ErrorKind[src]
impl Error for ErrorKind[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more