Enum binary_data_schema::Error[][src]

pub enum Error {
    Serialization(Error),
    IoFail(Error),
    InvalidString(FromUtf8Error),
    InvalidBString(FromUtf8Error),
    BinaryEncoding(FromHexError),
    StringEncoding {
        value: String,
        source: EncodingError,
    },
    MaxLength {
        max: usize,
        requested: usize,
    },
    InvalidFloatingLength {
        requested: usize,
    },
    BitOffset {
        max: usize,
        requested: usize,
    },
    InvalidBitWidth {
        max: usize,
        requested: usize,
    },
    NoBitfields,
    OverlappingBitfields,
    NotSameBytes,
    InvalidIntegerSchema {
        bf: Box<Error>,
        int: Box<Error>,
    },
    InvalidValue {
        value: String,
        type_: &'static str,
    },
    MissingCapacity,
    InvalidDefaultChar(char),
    NotAField(String),
    MissingField(String),
    NotAnObject(String),
    MissingArrayLength,
    NotMatchFixedLength {
        value: String,
        len: usize,
        fixed: usize,
    },
    ExceededLengthEncoding {
        value: String,
        len: usize,
        max: usize,
    },
    InconsitentFixedLength,
    InvalidPosition(usize),
    EncodedValueExceedsCapacity {
        len: usize,
        cap: usize,
    },
    NoPattern {
        read: String,
        pattern: String,
    },
    InvalidConst {
        value: String,
        type_: &'static str,
        source: Box<Error>,
    },
}

Errors from binary serialization.

Variants

Serialization(Error)
IoFail(Error)
InvalidString(FromUtf8Error)
InvalidBString(FromUtf8Error)
BinaryEncoding(FromHexError)
StringEncoding

Fields of StringEncoding

value: Stringsource: EncodingError
MaxLength

Fields of MaxLength

max: usizerequested: usize
InvalidFloatingLength

Fields of InvalidFloatingLength

requested: usize
BitOffset

Fields of BitOffset

max: usizerequested: usize
InvalidBitWidth

Fields of InvalidBitWidth

max: usizerequested: usize
NoBitfields
OverlappingBitfields
NotSameBytes
InvalidIntegerSchema

Fields of InvalidIntegerSchema

bf: Box<Error>int: Box<Error>
InvalidValue

Fields of InvalidValue

value: Stringtype_: &'static str
MissingCapacity
InvalidDefaultChar(char)
NotAField(String)
MissingField(String)
NotAnObject(String)
MissingArrayLength
NotMatchFixedLength

Fields of NotMatchFixedLength

value: Stringlen: usizefixed: usize
ExceededLengthEncoding

Fields of ExceededLengthEncoding

value: Stringlen: usizemax: usize
InconsitentFixedLength
InvalidPosition(usize)
EncodedValueExceedsCapacity

Fields of EncodedValueExceedsCapacity

len: usizecap: usize
NoPattern

Fields of NoPattern

read: Stringpattern: String
InvalidConst

Fields of InvalidConst

value: Stringtype_: &'static strsource: Box<Error>

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<FromHexError> for Error[src]

impl From<FromUtf8Error> for Error[src]

impl From<FromUtf8Error> for Error[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.