Enum ConnectionError
pub enum ConnectionError {
Show 23 variants
Client(Error),
InvalidState {
state: i32,
},
ConnectionMismatch {
connection_id: ConnectionId,
},
InvalidConsensusHeight {
target_height: Height,
current_height: Height,
},
InvalidIdentifier(IdentifierError),
EmptyProtoConnectionEnd,
EmptyVersions,
EmptyFeatures,
NoCommonVersion,
VersionNotSupported {
version: Version,
},
MissingProofHeight,
MissingConsensusHeight,
InvalidProof,
VerifyConnectionState(Error),
Signer,
ConnectionNotFound {
connection_id: ConnectionId,
},
InvalidCounterparty,
MissingCounterparty,
MissingClientState,
ConsensusStateVerificationFailure {
height: Height,
client_error: Error,
},
ClientStateVerificationFailure {
client_id: ClientId,
client_error: Error,
},
InvalidClientState {
reason: String,
},
Other {
description: String,
},
}
Variants§
Client(Error)
client error: {0}
InvalidState
connection state is unknown: {state}
ConnectionMismatch
connection end for identifier {connection_id}
was never initialized
Fields
connection_id: ConnectionId
InvalidConsensusHeight
consensus height claimed by the client on the other party is too advanced: {target_height}
(host chain current height: {current_height}
)
InvalidIdentifier(IdentifierError)
identifier error: {0}
EmptyProtoConnectionEnd
ConnectionEnd domain object could not be constructed out of empty proto object
EmptyVersions
empty supported versions
EmptyFeatures
empty supported features
NoCommonVersion
no common version
VersionNotSupported
version "{version}
" not supported
MissingProofHeight
missing proof height
MissingConsensusHeight
missing consensus height
InvalidProof
invalid connection proof error
VerifyConnectionState(Error)
verifying connnection state error: {0}
Signer
malformed signer
ConnectionNotFound
no connection was found for the previous connection id provided {connection_id}
Fields
connection_id: ConnectionId
InvalidCounterparty
invalid counterparty
MissingCounterparty
missing counterparty
MissingClientState
missing client state
ConsensusStateVerificationFailure
the consensus proof verification failed (height: {height}
), client error: {client_error}
ClientStateVerificationFailure
the client state proof verification failed for client id {client_id}
, client error: {client_error}
InvalidClientState
invalid client state: {reason}
Other
other error: {description}
Trait Implementations§
§impl Debug for ConnectionError
impl Debug for ConnectionError
§impl Display for ConnectionError
impl Display for ConnectionError
§impl Error for ConnectionError
Available on crate feature std
only.
impl Error for ConnectionError
std
only.§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for ConnectionError
impl !RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl !UnwindSafe for ConnectionError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request