pub enum SerializedErrorKind {
WrongType {
expected: &'static str,
got: String,
},
IndexOutOfBounds {
idx: usize,
count: usize,
},
ArityError {
name: String,
expected: String,
got: usize,
},
NotCallable {
value: String,
},
OddMap {
count: usize,
},
Unsupported,
Other(String),
GasExhausted,
OutOfRange,
TransientAlreadyPersisted,
Parse,
Thrown(Box<SerializedValue>),
}Expand description
Mirrors ValueError with Value replaced by SerializedValue.
Variants§
WrongType
IndexOutOfBounds
ArityError
NotCallable
OddMap
Unsupported
Other(String)
GasExhausted
OutOfRange
TransientAlreadyPersisted
Parse
Thrown(Box<SerializedValue>)
Trait Implementations§
Source§impl Clone for SerializedErrorKind
impl Clone for SerializedErrorKind
Source§fn clone(&self) -> SerializedErrorKind
fn clone(&self) -> SerializedErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SerializedErrorKind
impl RefUnwindSafe for SerializedErrorKind
impl Send for SerializedErrorKind
impl Sync for SerializedErrorKind
impl Unpin for SerializedErrorKind
impl UnsafeUnpin for SerializedErrorKind
impl UnwindSafe for SerializedErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more