pub enum InconsistentStateError {
StorageError(String),
IntegerOverflow,
}
Expand description
An error that is caused by an operation on an inconsistent state. E.g. a deserialization error or an integer overflow.
Variants§
StorageError(String)
IntegerOverflow
Math operation with a value from the state resulted in a integer overflow.
Trait Implementations§
Source§impl BorshDeserialize for InconsistentStateErrorwhere
String: BorshDeserialize,
impl BorshDeserialize for InconsistentStateErrorwhere
String: BorshDeserialize,
Source§impl BorshSerialize for InconsistentStateErrorwhere
String: BorshSerialize,
impl BorshSerialize for InconsistentStateErrorwhere
String: BorshSerialize,
Source§impl Clone for InconsistentStateError
impl Clone for InconsistentStateError
Source§fn clone(&self) -> InconsistentStateError
fn clone(&self) -> InconsistentStateError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InconsistentStateError
impl Debug for InconsistentStateError
Source§impl<'de> Deserialize<'de> for InconsistentStateError
impl<'de> Deserialize<'de> for InconsistentStateError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InconsistentStateError
impl Display for InconsistentStateError
Source§impl From<InconsistentStateError> for VMLogicError
impl From<InconsistentStateError> for VMLogicError
Source§fn from(err: InconsistentStateError) -> Self
fn from(err: InconsistentStateError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InconsistentStateError
impl PartialEq for InconsistentStateError
Source§impl Serialize for InconsistentStateError
impl Serialize for InconsistentStateError
impl Eq for InconsistentStateError
impl StructuralPartialEq for InconsistentStateError
Auto Trait Implementations§
impl Freeze for InconsistentStateError
impl RefUnwindSafe for InconsistentStateError
impl Send for InconsistentStateError
impl Sync for InconsistentStateError
impl Unpin for InconsistentStateError
impl UnwindSafe for InconsistentStateError
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