pub trait CommandMiddleware<C>: Send + Syncwhere
C: Command + 'static,{
// Required method
fn handle<'a>(
&'a self,
command: C,
next: CommandNext<'a, C>,
) -> BoxFuture<'a, SoapResult<C::Output>>;
}Expand description
Intercepts one concrete command type around its next processing step.
Required Methods§
Sourcefn handle<'a>(
&'a self,
command: C,
next: CommandNext<'a, C>,
) -> BoxFuture<'a, SoapResult<C::Output>>
fn handle<'a>( &'a self, command: C, next: CommandNext<'a, C>, ) -> BoxFuture<'a, SoapResult<C::Output>>
Processes, delegates, or short-circuits the command.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".