pub enum ProtocolUpgradeError {
InvalidProtocolVersion(ProtocolVersion),
InvalidUpgradeConfig,
UnableToRetrieveSystemContract(String),
UnableToRetrieveSystemContractPackage(String),
FailedToDisablePreviousVersion(String),
Bytesrepr(String),
FailedToCreateSystemRegistry,
UnexpectedKeyVariant,
UnexpectedStoredValueVariant,
CLValue(String),
MissingSystemEntityHash(String),
TrackingCopy(TrackingCopyError),
}Expand description
Represents outcomes of a failed protocol upgrade.
Variants§
InvalidProtocolVersion(ProtocolVersion)
Protocol version used in the deploy is invalid.
InvalidUpgradeConfig
Error validating a protocol upgrade config.
UnableToRetrieveSystemContract(String)
Unable to retrieve a system contract.
UnableToRetrieveSystemContractPackage(String)
Unable to retrieve a system contract package.
FailedToDisablePreviousVersion(String)
Unable to disable previous version of a system contract.
Bytesrepr(String)
(De)serialization error.
FailedToCreateSystemRegistry
Failed to create system entity registry.
UnexpectedKeyVariant
Found unexpected variant of a key.
UnexpectedStoredValueVariant
Found unexpected variant of a stored value.
CLValue(String)
Failed to convert into a CLValue.
MissingSystemEntityHash(String)
Missing system contract hash.
TrackingCopy(TrackingCopyError)
Tracking copy error.
Trait Implementations§
Source§impl Clone for ProtocolUpgradeError
impl Clone for ProtocolUpgradeError
Source§fn clone(&self) -> ProtocolUpgradeError
fn clone(&self) -> ProtocolUpgradeError
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 ProtocolUpgradeError
impl Debug for ProtocolUpgradeError
Source§impl Display for ProtocolUpgradeError
impl Display for ProtocolUpgradeError
Source§impl Error for ProtocolUpgradeError
impl Error for ProtocolUpgradeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CLValueError> for ProtocolUpgradeError
impl From<CLValueError> for ProtocolUpgradeError
Source§fn from(v: CLValueError) -> Self
fn from(v: CLValueError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ProtocolUpgradeError
impl From<Error> for ProtocolUpgradeError
Source§fn from(err: TrackingCopyError) -> Self
fn from(err: TrackingCopyError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ProtocolUpgradeError
impl From<Error> for ProtocolUpgradeError
Source§impl From<ProtocolUpgradeError> for ProtocolUpgradeResult
impl From<ProtocolUpgradeError> for ProtocolUpgradeResult
Source§fn from(err: ProtocolUpgradeError) -> Self
fn from(err: ProtocolUpgradeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProtocolUpgradeError
impl RefUnwindSafe for ProtocolUpgradeError
impl Send for ProtocolUpgradeError
impl Sync for ProtocolUpgradeError
impl Unpin for ProtocolUpgradeError
impl UnwindSafe for ProtocolUpgradeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more