Enum libp2p_kad::AddProviderPhase [−][src]
pub enum AddProviderPhase {
GetClosestPeers,
AddProvider {
provider_id: PeerId,
external_addresses: Vec<Multiaddr>,
get_closest_peers_stats: QueryStats,
},
}
Expand description
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.
Fields of AddProvider
provider_id: PeerId
The 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: QueryStats
Query statistics from the finished GetClosestPeers
phase.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AddProviderPhase
impl Send for AddProviderPhase
impl Sync for AddProviderPhase
impl Unpin for AddProviderPhase
impl UnwindSafe for AddProviderPhase
Blanket Implementations
Mutably borrows from an owned value. Read more