Skip to main content

CommandInterceptor

Type Alias CommandInterceptor 

Source
pub type CommandInterceptor<C, E> = Arc<dyn Fn(&C) -> Result<(), PatternError<E>> + Send + Sync + 'static>;
Expand description

A pre-handler interceptor. Receives the command by reference; may reject it (turns into PatternError::Intercepted).

Aliased Type§

pub struct CommandInterceptor<C, E> { /* private fields */ }