pub trait ConfigFilter: Send + Sync {
// Required method
fn filter<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
config_req: Option<&'life1 mut ConfigReq>,
config_resp: Option<&'life2 mut ConfigResp>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
ConfigFilter
Required Methods§
Sourcefn filter<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
config_req: Option<&'life1 mut ConfigReq>,
config_resp: Option<&'life2 mut ConfigResp>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn filter<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
config_req: Option<&'life1 mut ConfigReq>,
config_resp: Option<&'life2 mut ConfigResp>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Filter the config_req or config_resp. You can modify their values as needed.
ConfigReq
and ConfigResp
will not be None
at the same time.
Only one of ConfigReq
and ConfigResp
is Some
.