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

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

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 Send for CodecError

impl Sync for CodecError

impl Unpin for CodecError

impl UnwindSafe for CodecError

impl RefUnwindSafe for CodecError

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]