pub trait AgentProcessor:
Send
+ Sync
+ 'static {
// Required methods
fn process_event<'life0, 'async_trait>(
&'life0 self,
request: Request<AgentRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AgentResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn process_event_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<AgentRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<AgentResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with AgentProcessorServer.
Required Methods§
Sourcefn process_event<'life0, 'async_trait>(
&'life0 self,
request: Request<AgentRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AgentResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_event<'life0, 'async_trait>(
&'life0 self,
request: Request<AgentRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AgentResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process a single event (request/response headers, body chunks, etc.)
Sourcefn process_event_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<AgentRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<AgentResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_event_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<AgentRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<AgentResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Bidirectional streaming for body inspection Allows efficient processing of large request/response bodies