Enum concordium_std::UpgradeError
source · #[repr(i32)]
pub enum UpgradeError {
MissingModule,
MissingContract,
UnsupportedModuleVersion,
}
Expand description
Errors that may occur when upgrading the smart contract module.
Variants
MissingModule
Provided module does not exist.
MissingContract
Provided module does not contain a smart contract with a matching name.
UnsupportedModuleVersion
Provided module is a version 0 smart contract module.
Trait Implementations
sourceimpl Clone for UpgradeError
impl Clone for UpgradeError
sourcefn clone(&self) -> UpgradeError
fn clone(&self) -> UpgradeError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UpgradeError
impl Debug for UpgradeError
sourceimpl From<UpgradeError> for Reject
impl From<UpgradeError> for Reject
MissingModule is i32::MIN + 22, MissingContract is i32::MIN + 23, UnsupportedModuleVersion is i32::MIN + 24.
sourcefn from(te: UpgradeError) -> Self
fn from(te: UpgradeError) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more