pub trait Executor: 'static {
    type Error;

    fn execute<F: Future<Output = ()> + Send + 'static>(
        self,
        task: F
    ) -> Result<(), Self::Error>; }
Expand description

The executor used to run the code which applies log entries to the State.

Required Associated Types

Type of error yielded when a task cannot be executed.

Required Methods

Executes the given task.

Implementors