pub struct Config<E, K, V, T, D, C>{
pub db_config: Config<T, C>,
pub log: Journal<E, Variable<K, V>>,
pub lower_bound: u64,
pub upper_bound: u64,
pub pinned_nodes: Option<Vec<D>>,
pub apply_batch_size: usize,
}
Expand description
Configuration for syncing an immutable::Immutable to a target state.
Fields§
§db_config: Config<T, C>
Database configuration.
log: Journal<E, Variable<K, V>>
The immutable::Immutable’s log of operations. It has elements from lower_bound
to
upper_bound
, inclusive. Reports lower_bound
as its pruning boundary (oldest retained
operation index).
lower_bound: u64
Sync lower boundary (inclusive) - operations below this index are pruned.
upper_bound: u64
Sync upper boundary (inclusive) - operations above this index are not synced.
pinned_nodes: Option<Vec<D>>
The pinned nodes the MMR needs at the pruning boundary given by
lower_bound
, in the order specified by Proof::nodes_to_pin
.
If None
, the pinned nodes will be computed from the MMR’s journal and metadata,
which are expected to have the necessary pinned nodes.
apply_batch_size: usize
The maximum number of operations to keep in memory before committing the database while applying operations. Higher value will cause more memory usage during sync.
Auto Trait Implementations§
impl<E, K, V, T, D, C> Freeze for Config<E, K, V, T, D, C>
impl<E, K, V, T, D, C> !RefUnwindSafe for Config<E, K, V, T, D, C>
impl<E, K, V, T, D, C> Send for Config<E, K, V, T, D, C>
impl<E, K, V, T, D, C> Sync for Config<E, K, V, T, D, C>
impl<E, K, V, T, D, C> Unpin for Config<E, K, V, T, D, C>
impl<E, K, V, T, D, C> !UnwindSafe for Config<E, K, V, T, D, C>
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
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>
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>
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