Skip to main content

ExecutorSched_ExecutorSched1

Trait ExecutorSched_ExecutorSched1 

Source
pub trait ExecutorSched_ExecutorSched1: Send + Sync {
    // Required methods
    fn executorsched_null(
        &self,
    ) -> impl Future<Output = Result<impl EncodesAs<()>, ProgramError>> + Send;
    fn executorsched_ready(
        &self,
    ) -> impl Future<Output = Result<impl EncodesAs<ExecResult>, ProgramError>> + Send;
    fn executorsched_propose_transaction(
        &self,
        arg0: BlockID,
        arg1: SignedTransaction,
    ) -> impl Future<Output = Result<impl EncodesAs<ExecProposeResult>, ProgramError>> + Send;
    fn executorsched_validate_transaction(
        &self,
        arg0: BlockID,
        arg1: ProposedTransaction,
    ) -> impl Future<Output = Result<impl EncodesAs<ExecResult>, ProgramError>> + Send;
    fn executorsched_propose_batch(
        &self,
        arg0: BlockID,
        arg1: SignedTransactionBatch,
    ) -> impl Future<Output = Result<impl EncodesAs<ExecProposeBatchResult>, ProgramError>> + Send;
    fn executorsched_validate_batch(
        &self,
        arg0: BlockID,
        arg1: ProposedTransactionBatch,
    ) -> impl Future<Output = Result<impl EncodesAs<ExecValidateBatchResult>, ProgramError>> + Send;
    fn executorsched_open_proposal_block(
        &self,
        arg0: BlockID,
        arg1: BlockExecutionContext,
    ) -> impl Future<Output = Result<impl EncodesAs<ExecResult>, ProgramError>> + Send;
    fn executorsched_open_validation_block(
        &self,
        arg0: BlockID,
        arg1: BlockExecutionContext,
    ) -> impl Future<Output = Result<impl EncodesAs<ExecResult>, ProgramError>> + Send;
    fn executorsched_finish_block(
        &self,
        arg0: BlockID,
    ) -> impl Future<Output = Result<impl EncodesAs<ExecResult>, ProgramError>> + Send;
    fn executorsched_shutdown(
        &self,
    ) -> impl Future<Output = Result<impl EncodesAs<()>, 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§

Source

fn executorsched_null( &self, ) -> impl Future<Output = Result<impl EncodesAs<()>, ProgramError>> + Send

Source

fn executorsched_ready( &self, ) -> impl Future<Output = Result<impl EncodesAs<ExecResult>, ProgramError>> + Send

Source

fn executorsched_propose_transaction( &self, arg0: BlockID, arg1: SignedTransaction, ) -> impl Future<Output = Result<impl EncodesAs<ExecProposeResult>, ProgramError>> + Send

Source

fn executorsched_validate_transaction( &self, arg0: BlockID, arg1: ProposedTransaction, ) -> impl Future<Output = Result<impl EncodesAs<ExecResult>, ProgramError>> + Send

Source

fn executorsched_propose_batch( &self, arg0: BlockID, arg1: SignedTransactionBatch, ) -> impl Future<Output = Result<impl EncodesAs<ExecProposeBatchResult>, ProgramError>> + Send

Source

fn executorsched_validate_batch( &self, arg0: BlockID, arg1: ProposedTransactionBatch, ) -> impl Future<Output = Result<impl EncodesAs<ExecValidateBatchResult>, ProgramError>> + Send

Source

fn executorsched_open_proposal_block( &self, arg0: BlockID, arg1: BlockExecutionContext, ) -> impl Future<Output = Result<impl EncodesAs<ExecResult>, ProgramError>> + Send

Source

fn executorsched_open_validation_block( &self, arg0: BlockID, arg1: BlockExecutionContext, ) -> impl Future<Output = Result<impl EncodesAs<ExecResult>, ProgramError>> + Send

Source

fn executorsched_finish_block( &self, arg0: BlockID, ) -> impl Future<Output = Result<impl EncodesAs<ExecResult>, ProgramError>> + Send

Source

fn executorsched_shutdown( &self, ) -> impl Future<Output = Result<impl EncodesAs<()>, ProgramError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§