pub trait Interceptor {
type Error: 'static;
// Provided methods
fn before(
&self,
context: Context<Self::Error>,
) -> Box<dyn Future<Item = Context<Self::Error>, Error = Self::Error>> { ... }
fn after(
&self,
context: Context<Self::Error>,
) -> Box<dyn Future<Item = Context<Self::Error>, Error = Self::Error>> { ... }
}