Struct tox::toxcore::dht::packet::DhtPkAnnounce[][src]

pub struct DhtPkAnnounce {
    pub pk: PublicKey,
    pub nonce: Nonce,
    pub payload: Vec<u8>,
}

Packet to announce self short term DHT PublicKey to a friend.

Onion client can send self announce info to its friend via two channels: through OnionDataRequest or through DhtRequest. DhtRequest will be used if friend's DHT PublicKey is known.

Length Content
1 0x9C
32 Public Key
24 Nonce
variable Payload

Fields

PublicKey for the current encrypted payload

Nonce for the current encrypted payload

Encrypted payload

Trait Implementations

impl Clone for DhtPkAnnounce
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DhtPkAnnounce
[src]

Formats the value using the given formatter. Read more

impl Eq for DhtPkAnnounce
[src]

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

Deserialize struct using nom from raw bytes

impl ToBytes for DhtPkAnnounce
[src]

Serialize struct into raw bytes using cookie_factory

Auto Trait Implementations