pub struct CodecError {
pub upto: int,
pub cause: SendStr,
}
Error information from either encoder or decoder.
Fields
upto | The byte position of the first remaining byte, with respect to the current input.
For the finish call, this should be no more than zero (since there is no input).
It can be negative if the remaining byte is in the prior inputs,
as long as the remaining byte is not yet processed.
The caller should feed the bytes starting from this point again
in order to continue encoding or decoding after an error.
|
cause | A human-readable cause of the error.
|
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).