Enum serde_pickle::error::ErrorCode [] [src]

pub enum ErrorCode {
    Unsupported(char),
    EOFWhileParsing,
    StackUnderflow,
    NegativeLength,
    StringNotUTF8,
    InvalidStackTop(&'static strString),
    ValueNotHashable,
    Recursive,
    UnresolvedGlobal,
    UnsupportedGlobal(Vec<u8>, Vec<u8>),
    MissingMemo(u32),
    InvalidLiteral(Vec<u8>),
    TrailingBytes,
    InvalidValue(String),
    Structure(String),
}

Variants

Unsupported opcode

EOF while parsing op argument

Stack underflowed

Length prefix found negative

String decoding as UTF-8 failed

Wrong stack top type for opcode

Value not hashable, but used as dict key or set item

Recursive structure found, which we don't support

A "module global" reference wasn't resolved by REDUCE

A "module global" isn't supported

A value was missing from the memo

Invalid literal found

Found trailing bytes after STOP opcode

Invalid value in pickle stream

Structure deserialization error (e.g., unknown variant)

Trait Implementations

impl Clone for ErrorCode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ErrorCode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for ErrorCode
[src]

Formats the value using the given formatter.

impl Display for ErrorCode
[src]

Formats the value using the given formatter.