Struct hdp_preprocessor::compile::CompilationResult
source · pub struct CompilationResult {
pub pre_processable: bool,
pub commit_results_maps: HashMap<B256, U256>,
pub headers: HashSet<ProcessedHeader>,
pub accounts: HashSet<ProcessedAccount>,
pub storages: HashSet<ProcessedStorage>,
pub transactions: HashSet<ProcessedTransaction>,
pub transaction_receipts: HashSet<ProcessedReceipt>,
pub mmr_metas: HashSet<MMRMeta>,
}
Fields§
§pre_processable: bool
flag to check if the aggregation function is pre-processable
commit_results_maps: HashMap<B256, U256>
task_commitment -> value
headers: HashSet<ProcessedHeader>
Headers related to the datalake
accounts: HashSet<ProcessedAccount>
Accounts related to the datalake
storages: HashSet<ProcessedStorage>
Storages related to the datalake
transactions: HashSet<ProcessedTransaction>
Transactions related to the datalake
transaction_receipts: HashSet<ProcessedReceipt>
Transaction receipts related to the datalake
mmr_metas: HashSet<MMRMeta>
MMR meta data related to the headers
Implementations§
source§impl CompilationResult
impl CompilationResult
pub fn new_without_result( headers: HashSet<ProcessedHeader>, accounts: HashSet<ProcessedAccount>, storages: HashSet<ProcessedStorage>, transactions: HashSet<ProcessedTransaction>, transaction_receipts: HashSet<ProcessedReceipt>, mmr_metas: HashSet<MMRMeta>, ) -> Self
pub fn new( pre_processable: bool, commit_results_maps: HashMap<B256, U256>, headers: HashSet<ProcessedHeader>, accounts: HashSet<ProcessedAccount>, storages: HashSet<ProcessedStorage>, transactions: HashSet<ProcessedTransaction>, transaction_receipts: HashSet<ProcessedReceipt>, mmr_metas: HashSet<MMRMeta>, ) -> Self
sourcepub fn extend(&mut self, other: CompilationResult)
pub fn extend(&mut self, other: CompilationResult)
Extend the current compilation results with another compilation results
Trait Implementations§
source§impl Debug for CompilationResult
impl Debug for CompilationResult
source§impl Default for CompilationResult
impl Default for CompilationResult
source§impl PartialEq for CompilationResult
impl PartialEq for CompilationResult
impl StructuralPartialEq for CompilationResult
Auto Trait Implementations§
impl Freeze for CompilationResult
impl RefUnwindSafe for CompilationResult
impl Send for CompilationResult
impl Sync for CompilationResult
impl Unpin for CompilationResult
impl UnwindSafe for CompilationResult
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> 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