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 moresource§impl Debug for AddProviderContext
impl Debug for AddProviderContext
source§impl PartialEq<AddProviderContext> for AddProviderContext
impl PartialEq<AddProviderContext> for AddProviderContext
source§fn eq(&self, other: &AddProviderContext) -> bool
fn eq(&self, other: &AddProviderContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.