pub struct ServerInterceptorChain { /* private fields */ }Expand description
An ordered chain of ServerInterceptor instances.
Interceptors are executed in insertion order for before and reverse order
for after.
Implementations§
Source§impl ServerInterceptorChain
impl ServerInterceptorChain
Sourcepub fn push(&mut self, interceptor: Arc<dyn ServerInterceptor>)
pub fn push(&mut self, interceptor: Arc<dyn ServerInterceptor>)
Appends an interceptor to the chain.
Sourcepub async fn run_before(&self, ctx: &CallContext) -> A2aResult<()>
pub async fn run_before(&self, ctx: &CallContext) -> A2aResult<()>
Trait Implementations§
Source§impl Debug for ServerInterceptorChain
impl Debug for ServerInterceptorChain
Source§impl Default for ServerInterceptorChain
impl Default for ServerInterceptorChain
Source§fn default() -> ServerInterceptorChain
fn default() -> ServerInterceptorChain
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServerInterceptorChain
impl !RefUnwindSafe for ServerInterceptorChain
impl Send for ServerInterceptorChain
impl Sync for ServerInterceptorChain
impl Unpin for ServerInterceptorChain
impl UnsafeUnpin for ServerInterceptorChain
impl !UnwindSafe for ServerInterceptorChain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more