Enum concordium_std::UpgradeError
source · #[repr(i32)]pub enum UpgradeError {
MissingModule = 0,
MissingContract = 1,
UnsupportedModuleVersion = 2,
}
Expand description
Errors that may occur when upgrading the smart contract module.
Variants§
MissingModule = 0
Provided module does not exist.
MissingContract = 1
Provided module does not contain a smart contract with a matching name.
UnsupportedModuleVersion = 2
Provided module is a version 0 smart contract module.
Trait Implementations§
source§impl Clone for UpgradeError
impl Clone for UpgradeError
source§fn clone(&self) -> UpgradeError
fn clone(&self) -> UpgradeError
Returns a copy 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 UpgradeError
impl Debug for UpgradeError
source§impl From<UpgradeError> for Reject
impl From<UpgradeError> for Reject
MissingModule is i32::MIN + 22, MissingContract is i32::MIN + 23, UnsupportedModuleVersion is i32::MIN + 24.
source§fn from(te: UpgradeError) -> Self
fn from(te: UpgradeError) -> Self
Converts to this type from the input type.
source§impl PartialEq for UpgradeError
impl PartialEq for UpgradeError
source§fn eq(&self, other: &UpgradeError) -> bool
fn eq(&self, other: &UpgradeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UpgradeError
impl StructuralEq for UpgradeError
impl StructuralPartialEq for UpgradeError
Auto Trait Implementations§
impl RefUnwindSafe for UpgradeError
impl Send for UpgradeError
impl Sync for UpgradeError
impl Unpin for UpgradeError
impl UnwindSafe for UpgradeError
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