Enum serde_pickle::error::ErrorCode [−][src]
pub enum ErrorCode {
Show 15 variants
Unsupported(char),
EOFWhileParsing,
StackUnderflow,
NegativeLength,
StringNotUTF8,
InvalidStackTop(&'static str, String),
ValueNotHashable,
Recursive,
UnresolvedGlobal,
UnsupportedGlobal(Vec<u8>, Vec<u8>),
MissingMemo(u32),
InvalidLiteral(Vec<u8>),
TrailingBytes,
InvalidValue(String),
Structure(String),
}
Variants
Unsupported(char)
Unsupported opcode
Tuple Fields of Unsupported
0: char
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
MissingMemo(u32)
A value was missing from the memo
Tuple Fields of MissingMemo
0: u32
Invalid literal found
Found trailing bytes after STOP opcode
InvalidValue(String)
Invalid value in pickle stream
Tuple Fields of InvalidValue
0: String
Structure(String)
Structure deserialization error (e.g., unknown variant)
Tuple Fields of Structure
0: String
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
Mutably borrows from an owned value. Read more