pub trait Interceptor<H: Hook> {
// Provided methods
fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
_hook: &'life1 H,
) -> Pin<Box<dyn Future<Output = Result<Vec<<H as Hook>::Tap>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn call_blocking(&self, _hook: &H) -> Result<Vec<<H as Hook>::Tap>> { ... }
}Provided Methods§
fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
_hook: &'life1 H,
) -> Pin<Box<dyn Future<Output = Result<Vec<<H as Hook>::Tap>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn call_blocking(&self, _hook: &H) -> Result<Vec<<H as Hook>::Tap>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".