Enum flatbuffers::InvalidFlatbuffer[][src]

pub enum InvalidFlatbuffer {
    MissingRequiredField {
        required: &'static str,
        error_trace: ErrorTrace,
    },
    InconsistentUnion {
        field: &'static str,
        field_type: &'static str,
        error_trace: ErrorTrace,
    },
    Utf8Error {
        error: Utf8Error,
        range: Range<usize>,
        error_trace: ErrorTrace,
    },
    MissingNullTerminator {
        range: Range<usize>,
        error_trace: ErrorTrace,
    },
    Unaligned {
        position: usize,
        unaligned_type: &'static str,
        error_trace: ErrorTrace,
    },
    RangeOutOfBounds {
        range: Range<usize>,
        error_trace: ErrorTrace,
    },
    SignedOffsetOutOfBounds {
        soffset: SOffsetT,
        position: usize,
        error_trace: ErrorTrace,
    },
    TooManyTables,
    ApparentSizeTooLarge,
    DepthLimitReached,
}

Describes how a flatuffer is invalid and, for data errors, roughly where. No extra tracing information is given for DoS detecting errors since it will probably be a lot.

Variants

MissingRequiredField

Fields of MissingRequiredField

required: &'static strerror_trace: ErrorTrace
InconsistentUnion

Fields of InconsistentUnion

field: &'static strfield_type: &'static strerror_trace: ErrorTrace
Utf8Error

Fields of Utf8Error

error: Utf8Errorrange: Range<usize>error_trace: ErrorTrace
MissingNullTerminator

Fields of MissingNullTerminator

range: Range<usize>error_trace: ErrorTrace
Unaligned

Fields of Unaligned

position: usizeunaligned_type: &'static strerror_trace: ErrorTrace
RangeOutOfBounds

Fields of RangeOutOfBounds

range: Range<usize>error_trace: ErrorTrace
SignedOffsetOutOfBounds

Fields of SignedOffsetOutOfBounds

soffset: SOffsetTposition: usizeerror_trace: ErrorTrace
TooManyTables
ApparentSizeTooLarge
DepthLimitReached

Trait Implementations

impl Clone for InvalidFlatbuffer[src]

impl Debug for InvalidFlatbuffer[src]

impl Display for InvalidFlatbuffer[src]

impl Eq for InvalidFlatbuffer[src]

impl Error for InvalidFlatbuffer[src]

impl PartialEq<InvalidFlatbuffer> for InvalidFlatbuffer[src]

impl StructuralEq for InvalidFlatbuffer[src]

impl StructuralPartialEq for InvalidFlatbuffer[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.