[][src]Struct tox_packet::onion::OnionResponse2

pub struct OnionResponse2 {
    pub onion_return: OnionReturn,
    pub payload: InnerOnionResponse,
}

Second onion response packet. It's sent back from the third to the second node from onion chain.

Serialized form:

LengthContent
10x8d
118OnionReturn
variablePayload

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

impl Clone for OnionResponse2[src]

impl Debug for OnionResponse2[src]

impl Eq for OnionResponse2[src]

impl FromBytes for OnionResponse2[src]

impl PartialEq<OnionResponse2> for OnionResponse2[src]

impl StructuralEq for OnionResponse2[src]

impl StructuralPartialEq for OnionResponse2[src]

impl ToBytes for OnionResponse2[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.