//! Pipeline behavior trait: IPipelineBehavior.
use crateResult;
use Any;
use Future;
use Pin;
/// Type-erased continuation function for pipeline behaviors.
///
/// Carries a boxed request to the next behavior (or terminal handler).
pub type BoxedNextFn = ;
/// Boxed future returned by a pipeline behavior step.
pub type BoxedPipelineFuture = ;
/// Pipeline behavior that wraps around request handling.
///
/// Multiple behaviors form a chain. Each behavior can:
/// - Inspect or modify the request before passing it on
/// - Inspect or modify the response after it returns
/// - Short-circuit and skip the rest of the chain (by not calling `next`)
///
/// Behaviors resolve dependencies via constructor injection (registered as
/// Singleton in the DI container), following the MediatR pattern.
///
/// Analogous to MediatR's IPipelineBehavior<TRequest, TResponse>.