Struct kitsune_p2p_dht_arc::PeerStratAlpha
source · [−]pub struct PeerStratAlpha {
pub check_gaps: bool,
pub redundancy_target: u16,
pub coverage_buffer: f64,
pub default_uptime: f64,
pub noise_threshold: f64,
pub delta_scale: f64,
pub delta_threshold: f64,
}
Expand description
The default, and only, strategy for generating a PeerView
Fields
check_gaps: bool
redundancy_target: u16
coverage_buffer: f64
default_uptime: f64
noise_threshold: f64
delta_scale: f64
delta_threshold: f64
Implementations
sourceimpl PeerStratAlpha
impl PeerStratAlpha
pub fn view(&self, arc: DhtArc, peers: &[DhtArc]) -> PeerViewAlpha
pub fn view_unchecked(&self, arc: DhtArc, peers: &[DhtArc]) -> PeerViewAlpha
Trait Implementations
sourceimpl Clone for PeerStratAlpha
impl Clone for PeerStratAlpha
sourcefn clone(&self) -> PeerStratAlpha
fn clone(&self) -> PeerStratAlpha
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PeerStratAlpha
impl Debug for PeerStratAlpha
sourceimpl Default for PeerStratAlpha
impl Default for PeerStratAlpha
sourceimpl From<PeerStratAlpha> for PeerStrat
impl From<PeerStratAlpha> for PeerStrat
sourcefn from(original: PeerStratAlpha) -> PeerStrat
fn from(original: PeerStratAlpha) -> PeerStrat
Converts to this type from the input type.
impl Copy for PeerStratAlpha
Auto Trait Implementations
impl RefUnwindSafe for PeerStratAlpha
impl Send for PeerStratAlpha
impl Sync for PeerStratAlpha
impl Unpin for PeerStratAlpha
impl UnwindSafe for PeerStratAlpha
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more