Trait OnNewRoot
pub trait OnNewRoot<Hash> {
// Required method
fn on_new_root(root: &Hash);
}
Expand description
New MMR root notification hook.
Required Methods§
fn on_new_root(root: &Hash)
fn on_new_root(root: &Hash)
Function called by the pallet in case new MMR root has been computed.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.