Skip to main content

CommandMiddleware

Trait CommandMiddleware 

Source
pub trait CommandMiddleware<C>: Send + Sync
where 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§

Source

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".

Implementors§