[][src]Trait grin_chain::types::TxHashsetWriteStatus

pub trait TxHashsetWriteStatus {
    fn on_setup(&self);
fn on_validation(
        &self,
        kernels: u64,
        kernel_total: u64,
        rproofs: u64,
        rproof_total: u64
    );
fn on_save(&self);
fn on_done(&self); }

Inform the caller of the current status of a txhashset write operation, as it can take quite a while to process. Each function is called in the order defined below and can be used to provide some feedback to the caller. Functions taking arguments can be called repeatedly to update those values as the processing progresses.

Required Methods

First setup of the txhashset

Starting validation

Starting to save the txhashset and related data

Done writing a new txhashset

Implementors

impl TxHashsetWriteStatus for NoStatus
[src]