pub struct OnionMessage {
pub blinding_point: PublicKey,
pub onion_routing_packet: Packet,
}Expand description
An onion message to be sent to or received from a peer.
Fields§
§blinding_point: PublicKeyUsed in decrypting the onion packet’s payload.
onion_routing_packet: PacketThe full onion packet including hop data, pubkey, and hmac
Trait Implementations§
Source§impl Clone for OnionMessage
impl Clone for OnionMessage
Source§fn clone(&self) -> OnionMessage
fn clone(&self) -> OnionMessage
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 OnionMessage
impl Debug for OnionMessage
Source§impl Hash for OnionMessage
impl Hash for OnionMessage
Source§impl PartialEq for OnionMessage
impl PartialEq for OnionMessage
Source§impl Readable for OnionMessage
impl Readable for OnionMessage
Source§impl Writeable for OnionMessage
impl Writeable for OnionMessage
impl Eq for OnionMessage
impl StructuralPartialEq for OnionMessage
Auto Trait Implementations§
impl Freeze for OnionMessage
impl RefUnwindSafe for OnionMessage
impl Send for OnionMessage
impl Sync for OnionMessage
impl Unpin for OnionMessage
impl UnwindSafe for OnionMessage
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