Enum tetsy_libp2p_kad::PutRecordContext[][src]

pub enum PutRecordContext {
    Publish,
    Republish,
    Replicate,
    Cache,
    Custom,
}

The context of a QueryInfo::PutRecord query.

Variants

Publish

The context is a Kademlia::put_record operation.

Republish

The context is periodic republishing of records stored earlier via Kademlia::put_record.

Replicate

The context is periodic replication (i.e. without extending the record TTL) of stored records received earlier from another peer.

Cache

The context is an automatic write-back caching operation of a record found via Kademlia::get_record at the closest node to the key queried that did not return a record. This only occurs after a lookup quorum of 1 as per standard Kademlia.

Custom

The context is a custom store operation targeting specific peers initiated by Kademlia::put_record_to.

Trait Implementations

impl Clone for PutRecordContext[src]

impl Copy for PutRecordContext[src]

impl Debug for PutRecordContext[src]

impl Eq for PutRecordContext[src]

impl PartialEq<PutRecordContext> for PutRecordContext[src]

impl StructuralEq for PutRecordContext[src]

impl StructuralPartialEq for PutRecordContext[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,