Enum ChannelError
pub enum ChannelError {
Show 28 variants
Connection(ConnectionError),
UnknownState {
state: i32,
},
UnknownOrderType {
type_id: String,
},
InvalidConnectionHopsLength {
expected: usize,
actual: usize,
},
MissingHeight,
NonUtf8PacketData,
MissingCounterparty,
NoCommonVersion,
MissingChannel,
InvalidVersionLengthConnection,
ChannelFeatureNotSuportedByConnection,
ChannelNotFound {
port_id: PortId,
channel_id: ChannelId,
},
PacketVerificationFailed {
sequence: Sequence,
client_error: Error,
},
VerifyChannelFailed(Error),
InvalidStringAsSequence {
value: String,
error: ParseIntError,
},
InvalidCounterpartyChannelId,
ProcessedTimeNotFound {
client_id: ClientId,
height: Height,
},
ProcessedHeightNotFound {
client_id: ClientId,
height: Height,
},
RouteNotFound,
AppModule {
description: String,
},
Other {
description: String,
},
ChannelClosed {
channel_id: ChannelId,
},
ConnectionNotOpen {
connection_id: ConnectionId,
},
UndefinedConnectionCounterparty {
connection_id: ConnectionId,
},
FrozenClient {
client_id: ClientId,
},
InvalidChannelState {
channel_id: ChannelId,
state: State,
},
InvalidProof,
Identifier(IdentifierError),
}
Variants§
Connection(ConnectionError)
connection error: {0}
UnknownState
channel state unknown: {state}
UnknownOrderType
channel order type unknown: {type_id}
InvalidConnectionHopsLength
invalid connection hops length: expected {expected}
; actual {actual}
MissingHeight
invalid proof: missing height
NonUtf8PacketData
packet data bytes must be valid UTF-8 (this restriction will be lifted in the future)
MissingCounterparty
missing counterparty
NoCommonVersion
no commong version
MissingChannel
missing channel end
InvalidVersionLengthConnection
single version must be negociated on connection before opening channel
ChannelFeatureNotSuportedByConnection
the channel ordering is not supported by connection
ChannelNotFound
the channel end ({port_id}
, {channel_id}
) does not exist
PacketVerificationFailed
Verification fails for the packet with the sequence number {sequence}
, error: {client_error}
VerifyChannelFailed(Error)
Error verifying channel state error: {0}
InvalidStringAsSequence
String {value}
cannot be converted to packet sequence, error: {error}
InvalidCounterpartyChannelId
Invalid channel id in counterparty
ProcessedTimeNotFound
Processed time for the client {client_id}
at height {height}
not found
ProcessedHeightNotFound
Processed height for the client {client_id}
at height {height}
not found
RouteNotFound
route not found
AppModule
application module error: {description}
Other
other error: {description}
ChannelClosed
Channel {channel_id}
is Closed
ConnectionNotOpen
the associated connection {connection_id}
is not OPEN
Fields
connection_id: ConnectionId
UndefinedConnectionCounterparty
Undefined counterparty connection for {connection_id}
Fields
connection_id: ConnectionId
FrozenClient
Client with id {client_id}
is frozen
InvalidChannelState
Channel {channel_id}
should not be state {state}
InvalidProof
invalid proof: empty proof
Identifier(IdentifierError)
identifier error: {0}
Trait Implementations§
§impl Debug for ChannelError
impl Debug for ChannelError
§impl Display for ChannelError
impl Display for ChannelError
§impl Error for ChannelError
Available on crate feature std
only.
impl Error for ChannelError
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 ChannelError
impl !RefUnwindSafe for ChannelError
impl Send for ChannelError
impl Sync for ChannelError
impl Unpin for ChannelError
impl !UnwindSafe for ChannelError
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