Skip to main content

EventExecutor_EventExecutor1

Trait EventExecutor_EventExecutor1 

Source
pub trait EventExecutor_EventExecutor1: Send + Sync {
    // Required methods
    fn eventexecutor_null(
        &self,
    ) -> impl Future<Output = Result<impl EncodesAs<()>, ProgramError>> + Send;
    fn eventexecutor_open_block(
        &self,
        arg0: BlockID,
    ) -> impl Future<Output = Result<impl EncodesAs<RPCError>, ProgramError>> + Send;
    fn eventexecutor_close_block(
        &self,
        arg0: BlockID,
    ) -> impl Future<Output = Result<impl EncodesAs<RPCError>, ProgramError>> + Send;
    fn eventexecutor_report_tx_failure(
        &self,
        arg0: TransactionHash,
        arg1: TxFailureDiagnostic,
    ) -> impl Future<Output = Result<impl EncodesAs<RPCError>, ProgramError>> + Send;
    fn eventexecutor_emit_event(
        &self,
        arg0: BlockID,
        arg1: TransactionID,
        arg2: TxEventLog,
        arg3: ProposedTransaction,
    ) -> impl Future<Output = Result<impl EncodesAs<RPCError>, ProgramError>> + Send;
}
Expand description

Each handler replies with anything that encodes like the reply type. Implementations can be plain async fns returning a concrete reply type under #[allow(refining_impl_trait)].

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§