pub struct CodecError {
pub upto: isize,
pub cause: Cow<'static, str>,
}
Expand description
Error information from either encoder or decoder.
Fields§
§upto: isize
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: Cow<'static, str>
A human-readable cause of the error.
Auto Trait Implementations§
impl Freeze for CodecError
impl RefUnwindSafe for CodecError
impl Send for CodecError
impl Sync for CodecError
impl Unpin for CodecError
impl UnwindSafe for CodecError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more