[−][src]Struct tox_packet::dht::LanDiscovery
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:
Length | Content |
---|---|
1 | 0x21 |
32 | Public Key |
Fields
pk: PublicKey
DHT public key of the sender
Trait Implementations
impl Clone for LanDiscovery
[src]
fn clone(&self) -> LanDiscovery
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LanDiscovery
[src]
impl Eq for LanDiscovery
[src]
impl FromBytes for LanDiscovery
[src]
impl PartialEq<LanDiscovery> for LanDiscovery
[src]
fn eq(&self, other: &LanDiscovery) -> bool
[src]
fn ne(&self, other: &LanDiscovery) -> bool
[src]
impl StructuralEq for LanDiscovery
[src]
impl StructuralPartialEq for LanDiscovery
[src]
impl ToBytes for LanDiscovery
[src]
Auto Trait Implementations
impl RefUnwindSafe for LanDiscovery
impl Send for LanDiscovery
impl Sync for LanDiscovery
impl Unpin for LanDiscovery
impl UnwindSafe for LanDiscovery
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,