pub trait ProtocolUpdateExecutionHooks {
const IS_ENABLED: bool = true;
// Provided methods
fn adapt_execution_config(
&mut self,
config: ExecutionConfig,
) -> ExecutionConfig { ... }
fn on_transaction_executed(
&mut self,
event: OnProtocolTransactionExecuted<'_>,
) { ... }
fn on_transaction_batch_committed(
&mut self,
event: OnProtocolTransactionBatchCommitted<'_>,
) { ... }
fn on_protocol_update_completed(
&mut self,
event: OnProtocolUpdateCompleted<'_>,
) { ... }
}
Provided Associated Constants§
const IS_ENABLED: bool = true
Provided Methods§
fn adapt_execution_config(&mut self, config: ExecutionConfig) -> ExecutionConfig
fn on_transaction_executed(&mut self, event: OnProtocolTransactionExecuted<'_>)
fn on_transaction_batch_committed( &mut self, event: OnProtocolTransactionBatchCommitted<'_>, )
fn on_protocol_update_completed(&mut self, event: OnProtocolUpdateCompleted<'_>)
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.