Skip to main content

Executor

Trait Executor 

Source
pub trait Executor {
    type Error: Error;

    // Required method
    fn execute(&mut self, execution: Execution) -> Result<Outcome, Self::Error>;
}
Expand description

Public role responsible for executing claimed pacts through middleware.

Required Associated Types§

Source

type Error: Error

Error returned when the execution infrastructure fails.

Required Methods§

Source

fn execute(&mut self, execution: Execution) -> Result<Outcome, Self::Error>

Execute a claimed pact.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§