cfx_executor/observer/
checkpoint_tracer.rs

1use impl_tools::autoimpl;
2use impl_trait_for_tuples::impl_for_tuples;
3
4#[impl_for_tuples(3)]
5#[autoimpl(for<T: trait + ?Sized> &mut T)]
6pub trait CheckpointTracer {
7    fn trace_checkpoint(&mut self) {}
8
9    /// Discard the top checkpoint for validity mark
10    fn trace_checkpoint_discard(&mut self) {}
11
12    /// Mark the traces to the top checkpoint as "valid = false"
13    fn trace_checkpoint_revert(&mut self) {}
14}