Struct tox::toxcore::onion::packet::OnionResponse1[][src]

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

First onion response packet. It's sent back from the second to the first node from onion chain.

Serialized form:

Length Content
1 0x8e
59 OnionReturn
variable Payload

where payload is encrypted OnionAnnounceResponse or OnionDataResponse

Fields

Return address encrypted by the first node from onion chain

Encrypted payload

Trait Implementations

impl Clone for OnionResponse1
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for OnionResponse1
[src]

Formats the value using the given formatter. Read more

impl Eq for OnionResponse1
[src]

impl PartialEq for OnionResponse1
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl FromBytes for OnionResponse1
[src]

Deserialize struct using nom from raw bytes

impl ToBytes for OnionResponse1
[src]

Serialize struct into raw bytes using cookie_factory

Auto Trait Implementations