pub trait Middleware<E> {
type Executor: Executor;
// Required method
fn wrap(&self, executor: E) -> Self::Executor;
}Expand description
A Pacta-native decorator over execution: the Tower Layer analog. Because wrap
takes an Executor and returns an Executor, middleware compose arbitrarily
(the closure property), which is how orchestration is composed onto the seam.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".