pub enum UpgradeClientError {
InvalidUpgradeClientProof(CommitmentError),
InvalidUpgradeConsensusStateProof(CommitmentError),
LowUpgradeHeight {
upgraded_height: Height,
client_height: Height,
},
InvalidUpgradeProposal {
reason: String,
},
InvalidUpgradePlan {
reason: String,
},
Other {
reason: String,
},
}
Expand description
Encodes all the possible upgrade client errors
Variants§
InvalidUpgradeClientProof(CommitmentError)
invalid proof for the upgraded client state error: {0}
InvalidUpgradeConsensusStateProof(CommitmentError)
invalid proof for the upgraded consensus state error: {0}
LowUpgradeHeight
upgraded client height {upgraded_height}
must be at greater than current client height {client_height}
InvalidUpgradeProposal
invalid upgrade proposal: {reason}
InvalidUpgradePlan
invalid upgrade plan: {reason}
Other
other upgrade client error: {reason}
Trait Implementations§
source§impl Debug for UpgradeClientError
impl Debug for UpgradeClientError
source§impl Display for UpgradeClientError
impl Display for UpgradeClientError
source§impl Error for UpgradeClientError
impl Error for UpgradeClientError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<UpgradeClientError> for ClientError
impl From<UpgradeClientError> for ClientError
source§fn from(e: UpgradeClientError) -> ClientError
fn from(e: UpgradeClientError) -> ClientError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpgradeClientError
impl RefUnwindSafe for UpgradeClientError
impl Send for UpgradeClientError
impl Sync for UpgradeClientError
impl Unpin for UpgradeClientError
impl UnwindSafe for UpgradeClientError
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