pub struct IncomingForwardedPacket {
pub packet_tag: PacketTag,
pub previous_hop: OffchainPublicKey,
pub next_hop: OffchainPublicKey,
pub data: Box<[u8]>,
pub ack_challenge: HalfKeyChallenge,
pub received_ticket: UnacknowledgedTicket,
pub ack_key_prev_hop: HalfKey,
}Expand description
Incoming packet that must be forwarded.
Fields§
§packet_tag: PacketTagPacket tag.
previous_hop: OffchainPublicKeyOffchain public key of the previous hop.
next_hop: OffchainPublicKeyOffchain public key of the next hop.
data: Box<[u8]>Data to be forwarded to the next hop.
ack_challenge: HalfKeyChallengeChallenge to be solved from the acknowledgement received from the next hop.
received_ticket: UnacknowledgedTicketTicket to be acknowledged by solving the ack_challenge.
ack_key_prev_hop: HalfKeyAcknowledgement payload to be sent to the previous hop
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IncomingForwardedPacket
impl RefUnwindSafe for IncomingForwardedPacket
impl Send for IncomingForwardedPacket
impl Sync for IncomingForwardedPacket
impl Unpin for IncomingForwardedPacket
impl UnwindSafe for IncomingForwardedPacket
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
§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> 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