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

pub struct OnionRequest0Payload {
    pub ip_port: IpPort,
    pub temporary_pk: PublicKey,
    pub inner: Vec<u8>,
}

Unencrypted payload of OnionRequest0 packet.

Inner payload should be sent to the next node with address from ip_port field.

Serialized form:

Length Content
19 IpPort of the next node
32 Temporary PublicKey
variable Payload

where payload is encrypted OnionRequest1Payload

Fields

Address of the next node in the onion path

Temporary PublicKey for the current encrypted payload

Inner onion payload

Trait Implementations

impl Clone for OnionRequest0Payload
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for OnionRequest0Payload
[src]

Formats the value using the given formatter. Read more

impl Eq for OnionRequest0Payload
[src]

impl PartialEq for OnionRequest0Payload
[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 OnionRequest0Payload
[src]

Deserialize struct using nom from raw bytes

impl ToBytes for OnionRequest0Payload
[src]

Serialize struct into raw bytes using cookie_factory

Auto Trait Implementations