[−][src]Struct exonum_node::MemoryPoolConfig
Memory pool configuration parameters.
Examples
For most applications, you should use the value returned by MemoryPoolConfig::default()
, maybe
overwriting some fields afterwards:
let mut pool_config = MemoryPoolConfig::default(); // Increase flush pool interval to 100 milliseconds. pool_config.flush_pool_strategy = FlushPoolStrategy::Timeout { timeout: 100, }; // Use the config somewhere...
Fields (Non-exhaustive)
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.events_pool_capacity: EventsPoolCapacity
Sets the maximum number of messages that can be buffered on the event loop's notification channel before a send will fail.
flush_pool_strategy: FlushPoolStrategy
Interval in milliseconds between flushing the transaction cache to the persistent pool.
This value influences how fast transactions appear in the persistent pool after they
have been initially processed by the node. With Never
setting, transactions will not
be persisted at all before appearing in a block, which may negatively influence
some applications (e.g., the GET transactions
endpoint of the explorer service).
On the other hand of the spectrum, there is Immediate
, which flushes each transaction
separately after its initial processing. In the middle, there is Timeout
, which
allows to specify the coherence interval for the pool.
Trait Implementations
impl Clone for MemoryPoolConfig
[src]
fn clone(&self) -> MemoryPoolConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MemoryPoolConfig
[src]
impl Default for MemoryPoolConfig
[src]
fn default() -> MemoryPoolConfig
[src]
impl<'de> Deserialize<'de> for MemoryPoolConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<MemoryPoolConfig> for MemoryPoolConfig
[src]
fn eq(&self, other: &MemoryPoolConfig) -> bool
[src]
fn ne(&self, other: &MemoryPoolConfig) -> bool
[src]
impl Serialize for MemoryPoolConfig
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for MemoryPoolConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for MemoryPoolConfig
impl Send for MemoryPoolConfig
impl Sync for MemoryPoolConfig
impl Unpin for MemoryPoolConfig
impl UnwindSafe for MemoryPoolConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,