Enum libp2p_kad::AddProviderPhase [−][src]
pub enum AddProviderPhase {
    GetClosestPeers,
    AddProvider {
        provider_id: PeerId,
        external_addresses: Vec<Multiaddr>,
        get_closest_peers_stats: QueryStats,
    },
}The phases of a QueryInfo::AddProvider query.
Variants
The query is searching for the closest nodes to the record key.
The query advertises the local node as a provider for the key to the closest nodes to the key.
Show fields
Fields of AddProvider
provider_id: PeerIdThe local peer ID that is advertised as a provider.
external_addresses: Vec<Multiaddr>The external addresses of the provider being advertised.
get_closest_peers_stats: QueryStatsQuery statistics from the finished GetClosestPeers phase.
Trait Implementations
impl Clone for AddProviderPhase[src]
impl Clone for AddProviderPhase[src]