pub struct Config<H: CHasher> {
pub nodes: Vec<H::Digest>,
pub pruned_to_pos: u64,
pub pinned_nodes: Vec<H::Digest>,
pub pool: Option<ThreadPool>,
}
Fields§
§nodes: Vec<H::Digest>
The retained nodes of the MMR.
pruned_to_pos: u64
The highest position for which this MMR has been pruned, or 0 if this MMR has never been pruned.
pinned_nodes: Vec<H::Digest>
The pinned nodes of the MMR, in the order expected by Proof::nodes_to_pin.
pool: Option<ThreadPool>
Optional thread pool to use for parallelizing batch updates.
Auto Trait Implementations§
impl<H> Freeze for Config<H>
impl<H> !RefUnwindSafe for Config<H>
impl<H> Send for Config<H>
impl<H> Sync for Config<H>
impl<H> Unpin for Config<H>
impl<H> !UnwindSafe for Config<H>
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