#[derive(Interceptor)]
Derive macro for creating interceptors.
Generates implementations for the Interceptor trait.
Interceptor
use sword::prelude::*; #[derive(Interceptor)] struct MyInterceptor; // then implement some Interceptor trait variants // depending on the controller kind (e.g. OnRequest, OnConnect.)