pub struct Config<B, P, ES, T>{Show 13 fields
pub provider: P,
pub epocher: ES,
pub partition_prefix: String,
pub mailbox_size: usize,
pub view_retention_timeout: ViewDelta,
pub prunable_items_per_section: NonZeroU64,
pub page_cache: CacheRef,
pub replay_buffer: NonZeroUsize,
pub key_write_buffer: NonZeroUsize,
pub value_write_buffer: NonZeroUsize,
pub block_codec_config: B::Cfg,
pub max_repair: NonZeroUsize,
pub strategy: T,
}Expand description
Marshal configuration.
Fields§
§provider: PProvider for epoch-specific signing schemes.
epocher: ESConfiguration for epoch lengths across block height ranges.
partition_prefix: StringThe prefix to use for all partitions.
mailbox_size: usizeSize of backfill request/response mailbox.
view_retention_timeout: ViewDeltaMinimum number of views to retain temporary data after the application processes a block.
Useful for keeping around information that peers may desire to have.
prunable_items_per_section: NonZeroU64Prunable archive partition prefix.
page_cache: CacheRefThe page cache to use for the freezer journal.
replay_buffer: NonZeroUsizeThe size of the replay buffer for storage archives.
key_write_buffer: NonZeroUsizeThe size of the write buffer for the key journal of storage archives.
value_write_buffer: NonZeroUsizeThe size of the write buffer for the value journal of storage archives.
block_codec_config: B::CfgCodec configuration for block type.
max_repair: NonZeroUsizeMaximum number of blocks to repair at once.
strategy: TStrategy for parallel operations.
Auto Trait Implementations§
impl<B, P, ES, T> Freeze for Config<B, P, ES, T>
impl<B, P, ES, T> !RefUnwindSafe for Config<B, P, ES, T>
impl<B, P, ES, T> Send for Config<B, P, ES, T>
impl<B, P, ES, T> Sync for Config<B, P, ES, T>
impl<B, P, ES, T> Unpin for Config<B, P, ES, T>
impl<B, P, ES, T> !UnwindSafe for Config<B, P, ES, T>
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