[][src]Enum parity_wasm::elements::Error

pub enum Error {
    UnexpectedEof,
    InvalidMagic,
    UnsupportedVersion(u32),
    InconsistentLength {
        expected: usize,
        actual: usize,
    },
    Other(&'static str),
    HeapOther(String),
    UnknownValueType(i8),
    UnknownTableElementType(i8),
    NonUtf8String,
    UnknownExternalKind(u8),
    UnknownInternalKind(u8),
    UnknownOpcode(u8),
    InvalidVarUint1(u8),
    InvalidVarInt32,
    InvalidVarInt64,
    InvalidVarUint32,
    InvalidVarUint64,
    InconsistentMetadata,
    InvalidSectionId(u8),
    SectionsOutOfOrder,
    DuplicatedSections(u8),
    InvalidMemoryReference(u8),
    InvalidTableReference(u8),
    UnknownFunctionForm(u8),
    InvalidVarInt7(u8),
    InconsistentCode,
}

Deserialization/serialization error

Variants

Unexpected end of input

Invalid magic

Unsupported version

Inconsistence between declared and actual length

Fields of InconsistentLength

Expected length of the definition

Actual length of the definition

Other static error

Other allocated error

Invalid/unknown value type declaration

Invalid/unknown table element type declaration

Non-utf8 string

Unknown external kind code

Unknown internal kind code

Unknown opcode encountered

Invalid VarUint1 value

Invalid VarInt32 value

Invalid VarInt64 value

Invalid VarUint32 value

Invalid VarUint64 value

Inconsistent metadata

Invalid section id

Sections are out of order

Duplicated sections

Invalid memory reference (should be 0)

Invalid table reference (should be 0)

Unknown function form (should be 0x60)

Invalid varint7 (should be in -64..63 range)

Number of function body entries and signatures does not match

Trait Implementations

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

This method is soft-deprecated. Read more

Deprecating in 1.33.0

: replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

The lower-level source of this error, if any. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

Converts the given value to a String. Read more

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

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.