Enum libp2p_kad::AddProviderContext
source · pub enum AddProviderContext {
Publish,
Republish,
}
Expand description
The context of a QueryInfo::AddProvider
query.
Variants§
Publish
The context is a Kademlia::start_providing
operation.
Republish
The context is periodic republishing of provider announcements
initiated earlier via Kademlia::start_providing
.
Trait Implementations§
source§impl Clone for AddProviderContext
impl Clone for AddProviderContext
source§fn clone(&self) -> AddProviderContext
fn clone(&self) -> AddProviderContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more