Enum PacketError
pub enum PacketError {
Show 34 variants
Connection(ConnectionError),
Channel(ChannelError),
ChannelClosed {
channel_id: ChannelId,
},
InvalidPacketCounterparty {
port_id: PortId,
channel_id: ChannelId,
},
FrozenClient {
client_id: ClientId,
},
LowPacketHeight {
chain_height: Height,
timeout_height: TimeoutHeight,
},
LowPacketTimestamp,
InvalidPacketSequence {
given_sequence: Sequence,
next_sequence: Sequence,
},
InvalidChannelState {
channel_id: ChannelId,
state: State,
},
ConnectionNotOpen {
connection_id: ConnectionId,
},
PacketReceiptNotFound {
sequence: Sequence,
},
IncorrectPacketCommitment {
sequence: Sequence,
},
ImplementationSpecific,
UndefinedConnectionCounterparty {
connection_id: ConnectionId,
},
InvalidProof,
PacketTimeoutHeightNotReached {
timeout_height: TimeoutHeight,
chain_height: Height,
},
PacketTimeoutTimestampNotReached {
timeout_timestamp: Timestamp,
chain_timestamp: Timestamp,
},
AcknowledgementExists {
sequence: Sequence,
},
InvalidAcknowledgement,
PacketAcknowledgementNotFound {
sequence: Sequence,
},
MissingHeight,
MissingPacket,
AppModule {
description: String,
},
RouteNotFound,
ZeroPacketSequence,
InvalidTimeoutHeight,
ZeroPacketData,
InvalidPacketTimestamp(ParseTimestampError),
Identifier(IdentifierError),
MissingNextSendSeq {
port_id: PortId,
channel_id: ChannelId,
},
ChannelNotFound {
port_id: PortId,
channel_id: ChannelId,
},
PacketCommitmentNotFound {
sequence: Sequence,
},
MissingNextRecvSeq {
port_id: PortId,
channel_id: ChannelId,
},
MissingNextAckSeq {
port_id: PortId,
channel_id: ChannelId,
},
}
Variants§
Connection(ConnectionError)
connection error: {0}
Channel(ChannelError)
channel error: {0}
ChannelClosed
Channel {channel_id}
is Closed
InvalidPacketCounterparty
packet destination port {port_id}
and channel {channel_id}
doesn’t match the counterparty’s port/channel
FrozenClient
Client with id {client_id}
is frozen
LowPacketHeight
Receiving chain block height {chain_height}
>= packet timeout height {timeout_height}
LowPacketTimestamp
Receiving chain block timestamp >= packet timeout timestamp
InvalidPacketSequence
Invalid packet sequence {given_sequence}
≠ next send sequence {next_sequence}
InvalidChannelState
Channel {channel_id}
should not be state {state}
ConnectionNotOpen
the associated connection {connection_id}
is not OPEN
Fields
connection_id: ConnectionId
PacketReceiptNotFound
Receipt for the packet {sequence}
not found
IncorrectPacketCommitment
The stored commitment of the packet {sequence}
is incorrect
ImplementationSpecific
implementation specific error
UndefinedConnectionCounterparty
Undefined counterparty connection for {connection_id}
Fields
connection_id: ConnectionId
InvalidProof
invalid proof: empty proof
PacketTimeoutHeightNotReached
Packet timeout height {timeout_height}
> chain height {chain_height}
PacketTimeoutTimestampNotReached
Packet timeout timestamp {timeout_timestamp}
> chain timestamp {chain_timestamp}
AcknowledgementExists
Packet acknowledgement exists for the packet with the sequence {sequence}
InvalidAcknowledgement
Acknowledgment cannot be empty
PacketAcknowledgementNotFound
Acknowledgment for the packet {sequence}
not found
MissingHeight
invalid proof: missing height
MissingPacket
there is no packet in this message
AppModule
application module error: {description}
RouteNotFound
route not found
ZeroPacketSequence
packet sequence cannot be 0
InvalidTimeoutHeight
invalid timeout height for the packet
ZeroPacketData
packet data bytes cannot be empty
InvalidPacketTimestamp(ParseTimestampError)
Invalid packet timeout timestamp value error: {0}
Identifier(IdentifierError)
identifier error: {0}
MissingNextSendSeq
Missing sequence number for sending packets on port {port_id}
and channel {channel_id}
ChannelNotFound
the channel end ({port_id}
, {channel_id}
) does not exist
PacketCommitmentNotFound
Commitment for the packet {sequence}
not found
MissingNextRecvSeq
Missing sequence number for receiving packets on port {port_id}
and channel {channel_id}
MissingNextAckSeq
Missing sequence number for ack packets on port {port_id}
and channel {channel_id}
Trait Implementations§
§impl Debug for PacketError
impl Debug for PacketError
§impl Display for PacketError
impl Display for PacketError
§impl Error for PacketError
Available on crate feature std
only.
impl Error for PacketError
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 PacketError
impl !RefUnwindSafe for PacketError
impl Send for PacketError
impl Sync for PacketError
impl Unpin for PacketError
impl !UnwindSafe for PacketError
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