[−][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]
pub fn clone(&self) -> LanDiscovery
[src]
pub 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]
pub fn eq(&self, other: &LanDiscovery) -> bool
[src]
pub 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
[src]
impl Send for LanDiscovery
[src]
impl Sync for LanDiscovery
[src]
impl Unpin for LanDiscovery
[src]
impl UnwindSafe for LanDiscovery
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,