Enum kitsune_p2p_dht_arc::PeerView
source · [−]pub enum PeerView {
Alpha(PeerViewAlpha),
Beta(PeerViewBeta),
}
Expand description
A “view” of the peers in a neighborhood. The view consists of a few observations about the distribution of peers within a particular arc, used to make inferences about the rest of the (out-of-view) DHT, ultimately enabling the calculation of the target arc size for the agent who has this View.
The enum allows us to add different views (and different calculations of target arc length) over time.
Variants
Alpha(PeerViewAlpha)
Beta(PeerViewBeta)
Implementations
Given the current view of a peer and the peer’s current coverage, this returns the next step to take in reaching the ideal coverage.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for PeerView
impl UnwindSafe for PeerView
Blanket Implementations
Mutably borrows from an owned value. Read more