pub struct CommitManagerConfig {
pub operations_cleanup_after_block_depth: BlockHeight,
pub commit_maximum_pending_store_count: usize,
pub commit_maximum_interval: Duration,
pub block_proposal_timeout: Duration,
}Expand description
CommitManager’s configuration
Fields§
§operations_cleanup_after_block_depth: BlockHeightHow deep a block need to be before we cleanup its operations from pending store
commit_maximum_pending_store_count: usizeAfter how many new operations in pending store do we force a commit, even if we aren’t past the commit interval
commit_maximum_interval: DurationInterval at which commits are made, unless we hit
commit_maximum_pending_count
block_proposal_timeout: DurationFor how long a block proposal is considered valid after its creation This is used to prevent
Trait Implementations§
Source§impl Clone for CommitManagerConfig
impl Clone for CommitManagerConfig
Source§fn clone(&self) -> CommitManagerConfig
fn clone(&self) -> CommitManagerConfig
Returns a duplicate 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 CommitManagerConfig
impl Debug for CommitManagerConfig
Source§impl Default for CommitManagerConfig
impl Default for CommitManagerConfig
impl Copy for CommitManagerConfig
Auto Trait Implementations§
impl Freeze for CommitManagerConfig
impl RefUnwindSafe for CommitManagerConfig
impl Send for CommitManagerConfig
impl Sync for CommitManagerConfig
impl Unpin for CommitManagerConfig
impl UnwindSafe for CommitManagerConfig
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more