Skip to main content

ConfigFilter

Trait ConfigFilter 

Source
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;
}
Available on crate feature config only.
Expand description

ConfigFilter

Required Methods§

Source

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§