Struct diem_config::config::MempoolConfig
source · pub struct MempoolConfig {
pub capacity: usize,
pub capacity_per_user: usize,
pub default_failovers: usize,
pub max_broadcasts_per_peer: usize,
pub mempool_snapshot_interval_secs: u64,
pub shared_mempool_ack_timeout_ms: u64,
pub shared_mempool_backoff_interval_ms: u64,
pub shared_mempool_batch_size: usize,
pub shared_mempool_max_concurrent_inbound_syncs: usize,
pub shared_mempool_tick_interval_ms: u64,
pub system_transaction_timeout_secs: u64,
pub system_transaction_gc_interval_ms: u64,
}
Fields§
§capacity: usize
§capacity_per_user: usize
§default_failovers: usize
§max_broadcasts_per_peer: usize
§mempool_snapshot_interval_secs: u64
§system_transaction_timeout_secs: u64
§system_transaction_gc_interval_ms: u64
Trait Implementations§
source§impl Clone for MempoolConfig
impl Clone for MempoolConfig
source§fn clone(&self) -> MempoolConfig
fn clone(&self) -> MempoolConfig
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 MempoolConfig
impl Debug for MempoolConfig
source§impl Default for MempoolConfig
impl Default for MempoolConfig
source§fn default() -> MempoolConfig
fn default() -> MempoolConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MempoolConfigwhere
MempoolConfig: Default,
impl<'de> Deserialize<'de> for MempoolConfigwhere MempoolConfig: Default,
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<MempoolConfig> for MempoolConfig
impl PartialEq<MempoolConfig> for MempoolConfig
source§fn eq(&self, other: &MempoolConfig) -> bool
fn eq(&self, other: &MempoolConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MempoolConfig
impl Serialize for MempoolConfig
impl Eq for MempoolConfig
impl StructuralEq for MempoolConfig
impl StructuralPartialEq for MempoolConfig
Auto Trait Implementations§
impl RefUnwindSafe for MempoolConfig
impl Send for MempoolConfig
impl Sync for MempoolConfig
impl Unpin for MempoolConfig
impl UnwindSafe for MempoolConfig
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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> PersistableConfig for Twhere
T: Serialize + DeserializeOwned + ?Sized,
impl<T> PersistableConfig for Twhere T: Serialize + DeserializeOwned + ?Sized,
source§impl<T> Serialize for Twhere
T: Serialize + ?Sized,
impl<T> Serialize for Twhere T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.