pub struct GrpcAgentHandlerV2 { /* private fields */ }Expand description
Internal handler that implements the gRPC AgentServiceV2 trait.
Trait Implementations§
Source§impl AgentServiceV2 for GrpcAgentHandlerV2
impl AgentServiceV2 for GrpcAgentHandlerV2
Source§fn process_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<ProxyToAgent>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ProcessStreamStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<ProxyToAgent>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ProcessStreamStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle bidirectional stream for processing events.
Source§fn control_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<AgentControl>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ControlStreamStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn control_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<AgentControl>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ControlStreamStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle control stream for health/metrics/config.
The control stream is a bidirectional channel for:
- Agent -> Proxy: Health status, metrics reports, config update requests, logs
- Proxy -> Agent: Configuration updates, shutdown/drain requests
Source§fn process_event<'life0, 'async_trait>(
&'life0 self,
request: Request<ProxyToAgent>,
) -> Pin<Box<dyn Future<Output = Result<Response<AgentToProxy>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_event<'life0, 'async_trait>(
&'life0 self,
request: Request<ProxyToAgent>,
) -> Pin<Box<dyn Future<Output = Result<Response<AgentToProxy>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle single event (v1 compatibility mode).
Source§type ProcessStreamStream = Pin<Box<dyn Stream<Item = Result<AgentToProxy, Status>> + Send>>
type ProcessStreamStream = Pin<Box<dyn Stream<Item = Result<AgentToProxy, Status>> + Send>>
Server streaming response type for the ProcessStream method.
Source§type ControlStreamStream = Pin<Box<dyn Stream<Item = Result<ProxyControl, Status>> + Send>>
type ControlStreamStream = Pin<Box<dyn Stream<Item = Result<ProxyControl, Status>> + Send>>
Server streaming response type for the ControlStream method.
Auto Trait Implementations§
impl Freeze for GrpcAgentHandlerV2
impl !RefUnwindSafe for GrpcAgentHandlerV2
impl Send for GrpcAgentHandlerV2
impl Sync for GrpcAgentHandlerV2
impl Unpin for GrpcAgentHandlerV2
impl !UnwindSafe for GrpcAgentHandlerV2
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request