[][src]Struct tox_packet::dht::LanDiscovery

pub struct LanDiscovery {
    pub pk: PublicKey,
}

LanDiscovery packet struct. LanDiscovery packets contain the DHT public key of the sender. When a LanDiscovery packet is received, a NodesRequest packet will be sent to the sender of the packet. This means that the DHT instance will bootstrap itself to every peer from which it receives one of these packet. Through this mechanism, Tox clients will bootstrap themselve automatically from other Tox clients running on the local network.

Serialized form:

LengthContent
10x21
32Public Key

Fields

pk: PublicKey

DHT public key of the sender

Trait Implementations

impl Clone for LanDiscovery[src]

impl Debug for LanDiscovery[src]

impl Eq for LanDiscovery[src]

impl FromBytes for LanDiscovery[src]

impl PartialEq<LanDiscovery> for LanDiscovery[src]

impl StructuralEq for LanDiscovery[src]

impl StructuralPartialEq for LanDiscovery[src]

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