pub trait SgPluginFilter: Send + Sync + 'static {
// Required methods
fn kind(&self) -> SgPluginFilterKind;
fn init<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn destroy<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn req_filter<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
id: &'life1 str,
ctx: SgRouteFilterContext,
matched_match_inst: Option<&'life2 SgHttpRouteMatchInst>
) -> Pin<Box<dyn Future<Output = TardisResult<(bool, SgRouteFilterContext)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn resp_filter<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
id: &'life1 str,
ctx: SgRouteFilterContext,
matched_match_inst: Option<&'life2 SgHttpRouteMatchInst>
) -> Pin<Box<dyn Future<Output = TardisResult<(bool, SgRouteFilterContext)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}