[][src]Enum lib3h::dht::dht_protocol::DhtEvent

pub enum DhtEvent {
    GossipTo(GossipToData),
    GossipUnreliablyTo(GossipToData),
    HoldPeerRequested(PeerData),
    PeerTimedOut(String),
    HoldEntryRequested(FromPeerAddressEntryData),
    EntryDataRequested(FetchDhtEntryData),
    FetchEntryResponse(FetchDhtEntryResponseData),
    EntryPruned(Address),
}

Variants

GossipTo(GossipToData)

Ask owner to send this binary gossip bundle to the specified list of peerAddress' in a reliable manner.

GossipUnreliablyTo(GossipToData)

Ask owner to send this binary gossip bundle to as many peers listed in peerList as possible. It is okay if not all peers on the list receive the message.

HoldPeerRequested(PeerData)

Notify owner that gossip is requesting we hold a peer discovery data item.

PeerTimedOut(String)

Notify owner that we believe a peer has dropped

HoldEntryRequested(FromPeerAddressEntryData)

Notify owner that gossip is requesting we hold an entry. String argument is: from_peer_address

EntryDataRequested(FetchDhtEntryData)

DHT wants an entry in order to send it to someone on the network

FetchEntryResponse(FetchDhtEntryResponseData)

Response to a FetchEntry command.

EntryPruned(Address)

Notify owner that we are no longer tracking this entry internally. Owner should purge this address from storage, but they can, of course, choose not to.

Trait Implementations

impl PartialEq<DhtEvent> for DhtEvent[src]

impl Clone for DhtEvent[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for DhtEvent[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self