[][src]Struct tox_packet::dht::NodesRequestPayload

pub struct NodesRequestPayload {
    pub pk: PublicKey,
    pub id: u64,
}

Request to get address of given DHT PK, or nodes that are closest in DHT to the given PK. Request id is used for resistance against replay attacks.

Serialized form:

LengthContent
32DHT Public Key
8Request ID

Serialized form should be put in the encrypted part of NodesRequest packet.

Fields

pk: PublicKey

Public Key of the DHT node NodesRequestPayload is supposed to get address of.

id: u64

An ID of the request.

Trait Implementations

impl Clone for NodesRequestPayload[src]

impl Copy for NodesRequestPayload[src]

impl Debug for NodesRequestPayload[src]

impl Eq for NodesRequestPayload[src]

impl FromBytes for NodesRequestPayload[src]

impl PartialEq<NodesRequestPayload> for NodesRequestPayload[src]

impl StructuralEq for NodesRequestPayload[src]

impl StructuralPartialEq for NodesRequestPayload[src]

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