pub struct InFlightPacket {
pub original_sender_address: Signer,
pub refund_port_id: PortId,
pub refund_channel_id: ChannelId,
pub packet_src_port_id: PortId,
pub packet_src_channel_id: ChannelId,
pub packet_timeout_timestamp: TimeoutTimestamp,
pub packet_timeout_height: TimeoutHeight,
pub packet_data: Vec<u8>,
pub refund_sequence: Sequence,
pub retries_remaining: Option<NonZeroU8>,
pub timeout: Duration,
}Expand description
Packet that is currently being transmitted to a destination chain over multiple hops.
Fields§
§original_sender_address: SignerSender of the packet on the source chain.
refund_port_id: PortIdPort where the packet was received in the current chain.
refund_channel_id: ChannelIdChannel where the packet was received in the current chain.
packet_src_port_id: PortIdPort on the sending chain.
packet_src_channel_id: ChannelIdChannel on the sending chain.
packet_timeout_timestamp: TimeoutTimestampTimeout timestamp of the original packet.
packet_timeout_height: TimeoutHeightTimeout height of the original packet.
packet_data: Vec<u8>Data of the source packet.
refund_sequence: SequenceSequence number of the source packet.
retries_remaining: Option<NonZeroU8>Number of retries remaining before the packet is refunded.
timeout: DurationTimeout duration, relative to some instant (usually a block timestamp).
Trait Implementations§
Source§impl Clone for InFlightPacket
impl Clone for InFlightPacket
Source§fn clone(&self) -> InFlightPacket
fn clone(&self) -> InFlightPacket
Returns a duplicate 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 InFlightPacket
impl Debug for InFlightPacket
Source§impl<'de> Deserialize<'de> for InFlightPacket
impl<'de> Deserialize<'de> for InFlightPacket
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<InFlightPacket> for Packet
impl From<InFlightPacket> for Packet
Source§fn from(inflight_packet: InFlightPacket) -> Packet
fn from(inflight_packet: InFlightPacket) -> Packet
Converts to this type from the input type.
Source§impl PartialEq for InFlightPacket
impl PartialEq for InFlightPacket
Source§impl Serialize for InFlightPacket
impl Serialize for InFlightPacket
impl Eq for InFlightPacket
impl StructuralPartialEq for InFlightPacket
Auto Trait Implementations§
impl Freeze for InFlightPacket
impl RefUnwindSafe for InFlightPacket
impl Send for InFlightPacket
impl Sync for InFlightPacket
impl Unpin for InFlightPacket
impl UnwindSafe for InFlightPacket
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> 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