ProtocolUpdateExecutionHooks

Trait ProtocolUpdateExecutionHooks 

Source
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§

Source

const IS_ENABLED: bool = true

Provided Methods§

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.

Implementations on Foreign Types§

Source§

impl ProtocolUpdateExecutionHooks for ()

Source§

const IS_ENABLED: bool = false

Implementors§