Struct tox::toxcore::dht::packet::DhtPkAnnounce [−][src]
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
pk: PublicKey
PublicKey
for the current encrypted payload
nonce: Nonce
Nonce for the current encrypted payload
payload: Vec<u8>
Encrypted payload
Trait Implementations
impl Clone for DhtPkAnnounce
[src]
impl Clone for DhtPkAnnounce
fn clone(&self) -> DhtPkAnnounce
[src]
fn clone(&self) -> DhtPkAnnounce
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for DhtPkAnnounce
[src]
impl Debug for DhtPkAnnounce
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for DhtPkAnnounce
[src]
impl Eq for DhtPkAnnounce
impl PartialEq for DhtPkAnnounce
[src]
impl PartialEq for DhtPkAnnounce
fn eq(&self, other: &DhtPkAnnounce) -> bool
[src]
fn eq(&self, other: &DhtPkAnnounce) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DhtPkAnnounce) -> bool
[src]
fn ne(&self, other: &DhtPkAnnounce) -> bool
This method tests for !=
.
impl FromBytes for DhtPkAnnounce
[src]
impl FromBytes for DhtPkAnnounce
fn from_bytes<'a>(i: &'a [u8]) -> IResult<&'a [u8], DhtPkAnnounce, u32>
fn from_bytes<'a>(i: &'a [u8]) -> IResult<&'a [u8], DhtPkAnnounce, u32>
Deserialize struct using nom
from raw bytes
impl ToBytes for DhtPkAnnounce
[src]
impl ToBytes for DhtPkAnnounce
Auto Trait Implementations
impl Send for DhtPkAnnounce
impl Send for DhtPkAnnounce
impl Sync for DhtPkAnnounce
impl Sync for DhtPkAnnounce