pub struct Config<I: Indexer> {Show 13 fields
pub participants: Vec<PublicKey>,
pub polynomial: Poly<Evaluation>,
pub share: Share,
pub mailbox_size: usize,
pub partition_prefix: String,
pub mmr_items_per_blob: NonZero<u64>,
pub mmr_write_buffer: NonZero<usize>,
pub log_items_per_section: NonZero<u64>,
pub log_write_buffer: NonZero<usize>,
pub locations_items_per_blob: NonZero<u64>,
pub buffer_pool: PoolRef,
pub indexer: I,
pub execution_concurrency: usize,
}Expand description
Configuration for the application.
Fields§
§participants: Vec<PublicKey>Participants active in consensus.
polynomial: Poly<Evaluation>The unevaluated group polynomial associated with the current dealing.
The share of the secret.
mailbox_size: usizeNumber of messages from consensus to hold in our backlog before blocking.
partition_prefix: StringThe prefix for the partition.
mmr_items_per_blob: NonZero<u64>The number of items per blob for the MMR.
mmr_write_buffer: NonZero<usize>The number of items per write for the MMR.
log_items_per_section: NonZero<u64>The number of items per section for the log.
log_write_buffer: NonZero<usize>The number of items per write for the log.
locations_items_per_blob: NonZero<u64>The number of items per blob for the locations.
buffer_pool: PoolRefThe buffer pool to use.
indexer: IThe indexer to upload to.
execution_concurrency: usizeThe number of threads to use for execution.
Auto Trait Implementations§
impl<I> Freeze for Config<I>where
I: Freeze,
impl<I> !RefUnwindSafe for Config<I>
impl<I> Send for Config<I>
impl<I> Sync for Config<I>
impl<I> Unpin for Config<I>where
I: Unpin,
impl<I> !UnwindSafe for Config<I>
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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