Struct diem_config::config::ConsensusConfig [−][src]
pub struct ConsensusConfig {Show 13 fields
pub contiguous_rounds: u32,
pub max_block_size: u64,
pub max_pruned_blocks_in_mem: usize,
pub mempool_executed_txn_timeout_ms: u64,
pub mempool_txn_pull_timeout_ms: u64,
pub round_initial_timeout_ms: u64,
pub proposer_type: ConsensusProposerType,
pub safety_rules: SafetyRulesConfig,
pub sync_only: bool,
pub mempool_poll_count: u64,
pub channel_size: usize,
pub decoupled_execution: bool,
pub back_pressure_limit: u64,
}Fields
contiguous_rounds: u32max_block_size: u64max_pruned_blocks_in_mem: usizemempool_executed_txn_timeout_ms: u64mempool_txn_pull_timeout_ms: u64round_initial_timeout_ms: u64proposer_type: ConsensusProposerTypesafety_rules: SafetyRulesConfigsync_only: boolmempool_poll_count: u64channel_size: usizedecoupled_execution: boolback_pressure_limit: u64Implementations
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ConsensusConfig
impl Send for ConsensusConfig
impl Sync for ConsensusConfig
impl Unpin for ConsensusConfig
impl UnwindSafe for ConsensusConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.