pub struct HyparviewConfig {
pub active_view_capacity: usize,
pub passive_view_capacity: usize,
pub active_random_walk_length: Ttl,
pub passive_random_walk_length: Ttl,
pub shuffle_random_walk_length: Ttl,
pub shuffle_active_view_count: usize,
pub shuffle_passive_view_count: usize,
pub shuffle_interval: Duration,
pub neighbor_request_timeout: Duration,
}
Expand description
Configuration for the swarm membership layer
Fields§
§active_view_capacity: usize
Number of peers to which active connections are maintained
passive_view_capacity: usize
Number of peers for which contact information is remembered, but to which we are not actively connected to.
active_random_walk_length: Ttl
Number of hops a ForwardJoin
message is propagated until the new peer’s info
is added to a peer’s active view.
passive_random_walk_length: Ttl
Number of hops a ForwardJoin
message is propagated until the new peer’s info
is added to a peer’s passive view.
shuffle_random_walk_length: Ttl
Number of hops a Shuffle
message is propagated until a peer replies to it.
shuffle_active_view_count: usize
Number of active peers to be included in a Shuffle
request.
shuffle_passive_view_count: usize
Number of passive peers to be included in a Shuffle
request.
shuffle_interval: Duration
Interval duration for shuffle requests
neighbor_request_timeout: Duration
Timeout after which a Neighbor
request is considered failed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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