pub trait Extension {
// Required method
fn extend<'life0, 'life1, 'async_trait>(
&'life0 mut self,
request: &'life1 (dyn Request + Sync),
) -> Pin<Box<dyn Future<Output = Result<Extensions, ()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
A system of addons provided additional data.
An endpoint not having any extension may use &mut ()
as the result of system.