Enum binary_data_schema::EncodingError[][src]

pub enum EncodingError {
    LengthEncoding(Box<Error>),
    WriteFail(Error),
    NotFixedLength {
        len: usize,
        fixed: usize,
    },
    ContainsEndSequence(String),
    ExceedsCapacity {
        len: usize,
        cap: usize,
    },
    ExceedsLengthEncoding {
        len: usize,
        max: usize,
    },
}

Variants

LengthEncoding(Box<Error>)
WriteFail(Error)
NotFixedLength

Fields of NotFixedLength

len: usizefixed: usize
ContainsEndSequence(String)
ExceedsCapacity

Fields of ExceedsCapacity

len: usizecap: usize
ExceedsLengthEncoding

Fields of ExceedsLengthEncoding

len: usizemax: usize

Implementations

impl EncodingError[src]

pub fn context(self, value: String) -> Error[src]

Trait Implementations

impl Debug for EncodingError[src]

impl Display for EncodingError[src]

impl Error for EncodingError[src]

impl From<Box<Error, Global>> for EncodingError[src]

impl From<Error> for EncodingError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.