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 Behaviour::start_providing
operation.
Republish
The context is periodic republishing of provider announcements
initiated earlier via Behaviour::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 for AddProviderContext
impl PartialEq 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 ==
.impl Copy for AddProviderContext
impl Eq for AddProviderContext
impl StructuralEq for AddProviderContext
impl StructuralPartialEq for AddProviderContext
Auto Trait Implementations§
impl RefUnwindSafe for AddProviderContext
impl Send for AddProviderContext
impl Sync for AddProviderContext
impl Unpin for AddProviderContext
impl UnwindSafe for AddProviderContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more