pub struct Config<E, K, V, T, D, C>{
pub db_config: Config<T, C>,
pub log: Journal<E, Operation<K, V>>,
pub range: Range<Location>,
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, Operation<K, V>>The immutable::Immutable’s log of operations. It has elements within the range. Reports the range start as its pruning boundary (oldest retained operation index).
range: Range<Location>Sync range - operations outside this range are pruned or not synced.
pinned_nodes: Option<Vec<D>>The pinned nodes the MMR needs at the pruning boundary (range start), 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: usizeThe 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
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