pub type RecvError = Error<Error>;
Aliased Type§
enum RecvError {
Io(Error),
Syntax(usize),
Semantic(Option<usize>, String),
RecursionLimitExceeded,
}
Variants§
Io(Error)
An error occurred while reading bytes
Contains the underlying error returned while reading.
Syntax(usize)
An error occurred while parsing bytes
Contains the offset into the stream where the syntax error occurred.
Semantic(Option<usize>, String)
An error occurred while processing a parsed value
Contains a description of the error that occurred and (optionally) the offset into the stream indicating the start of the item being processed when the error occurred.
RecursionLimitExceeded
The input caused serde to recurse too much
This error prevents a stack overflow.