pub struct OnionResponse2 {
pub onion_return: OnionReturn,
pub payload: InnerOnionResponse,
}
Expand description
Second onion response packet. It’s sent back from the third to the second node from onion chain.
Serialized form:
Length | Content |
---|---|
1 | 0x8d |
118 | OnionReturn |
variable | Payload |
where payload is encrypted OnionAnnounceResponse
or OnionDataResponse
Fields§
§onion_return: OnionReturn
Return address encrypted by the second node from onion chain
payload: InnerOnionResponse
Encrypted payload
Trait Implementations§
Source§impl Clone for OnionResponse2
impl Clone for OnionResponse2
Source§fn clone(&self) -> OnionResponse2
fn clone(&self) -> OnionResponse2
Returns a copy 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 OnionResponse2
impl Debug for OnionResponse2
Source§impl FromBytes for OnionResponse2
impl FromBytes for OnionResponse2
Source§fn from_bytes(i: &[u8]) -> IResult<&[u8], OnionResponse2, (&[u8], ErrorKind)>
fn from_bytes(i: &[u8]) -> IResult<&[u8], OnionResponse2, (&[u8], ErrorKind)>
Deserialize struct using
nom
from raw bytesSource§impl PartialEq for OnionResponse2
impl PartialEq for OnionResponse2
Source§impl ToBytes for OnionResponse2
impl ToBytes for OnionResponse2
impl Eq for OnionResponse2
impl StructuralPartialEq for OnionResponse2
Auto Trait Implementations§
impl Freeze for OnionResponse2
impl RefUnwindSafe for OnionResponse2
impl Send for OnionResponse2
impl Sync for OnionResponse2
impl Unpin for OnionResponse2
impl UnwindSafe for OnionResponse2
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