pub trait CallInterceptor:
Send
+ Sync
+ 'static {
// Provided methods
fn before<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 mut CallContext,
request: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<(), A2AError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn after<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 CallContext,
result: &'life2 Result<Value, A2AError>,
) -> Pin<Box<dyn Future<Output = Result<(), A2AError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
}Expand description
Server-side interceptor for modifying requests and responses.