Struct encoding::types::CodecError [] [src]

pub struct CodecError {
    pub upto: isize,
    pub cause: Cow<'static, str>,
}

Error information from either encoder or decoder.

Fields

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.

A human-readable cause of the error.