[][src]Struct tox_packet::onion::OnionRequest0Payload

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:

LengthContent
19IpPort of the next node
32Temporary PublicKey
variablePayload

where payload is encrypted OnionRequest1Payload

Fields

ip_port: IpPort

Address of the next node in the onion path

temporary_pk: PublicKey

Temporary PublicKey for the current encrypted payload

inner: Vec<u8>

Inner onion payload

Trait Implementations

impl Clone for OnionRequest0Payload[src]

impl Debug for OnionRequest0Payload[src]

impl Eq for OnionRequest0Payload[src]

impl FromBytes for OnionRequest0Payload[src]

impl PartialEq<OnionRequest0Payload> for OnionRequest0Payload[src]

impl StructuralEq for OnionRequest0Payload[src]

impl StructuralPartialEq for OnionRequest0Payload[src]

impl ToBytes for OnionRequest0Payload[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.