Enum parity_wasm_cp::elements::Error[][src]

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),
    UnknownSimdOpcode(u32),
    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

Unknown SIMD 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 Debug for Error
[src]

Formats the value using the given formatter. Read more

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 Error for Error
[src]

This method is soft-deprecated. Read more

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

Auto Trait Implementations

impl Send for Error

impl Sync for Error