Struct avalanche_types::subnet::config::consensus::SnowballParameters
source · pub struct SnowballParameters {
pub k: i32,
pub alpha: i32,
pub beta_virtuous: i32,
pub beta_rogue: i32,
pub concurrent_repolls: i32,
pub optimal_processing: i32,
pub max_outstanding_items: i32,
pub max_item_processing_time: i64,
pub mixed_query_num_push_vdr: i32,
pub mixed_query_num_push_non_vdr: i32,
}
Expand description
Fields§
§k: i32
Sample size.
alpha: i32
Quorum size.
beta_virtuous: i32
Virtuous commit threshold.
beta_rogue: i32
Rogue commit threshold.
concurrent_repolls: i32
Minimum number of concurrent polls for finalizing consensus.
optimal_processing: i32
Optimal number of processing containers in consensus.
max_outstanding_items: i32
Maximum number of processing items to be considered healthy.
max_item_processing_time: i64
Maximum amount of time an item should be processing and still be healthy.
mixed_query_num_push_vdr: i32
§mixed_query_num_push_non_vdr: i32
Implementations§
Trait Implementations§
source§impl Clone for SnowballParameters
impl Clone for SnowballParameters
source§fn clone(&self) -> SnowballParameters
fn clone(&self) -> SnowballParameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SnowballParameters
impl Debug for SnowballParameters
source§impl Default for SnowballParameters
impl Default for SnowballParameters
source§impl<'de> Deserialize<'de> for SnowballParameters
impl<'de> Deserialize<'de> for SnowballParameters
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<SnowballParameters> for SnowballParameters
impl PartialEq<SnowballParameters> for SnowballParameters
source§fn eq(&self, other: &SnowballParameters) -> bool
fn eq(&self, other: &SnowballParameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SnowballParameters
impl Serialize for SnowballParameters
impl StructuralPartialEq for SnowballParameters
Auto Trait Implementations§
impl RefUnwindSafe for SnowballParameters
impl Send for SnowballParameters
impl Sync for SnowballParameters
impl Unpin for SnowballParameters
impl UnwindSafe for SnowballParameters
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request