pub struct AgentServer<A: Agent> { /* private fields */ }Expand description
Agent gRPC server.
Wraps an Agent implementation and exposes it as a gRPC service.
Implementations§
Source§impl<A: Agent> AgentServer<A>
impl<A: Agent> AgentServer<A>
Sourcepub fn into_service(self) -> AgentServiceServer<AgentServiceImpl<A>>
pub fn into_service(self) -> AgentServiceServer<AgentServiceImpl<A>>
Get the gRPC service for custom server configuration.
Auto Trait Implementations§
impl<A> Freeze for AgentServer<A>
impl<A> RefUnwindSafe for AgentServer<A>where
A: RefUnwindSafe,
impl<A> Send for AgentServer<A>
impl<A> Sync for AgentServer<A>
impl<A> Unpin for AgentServer<A>
impl<A> UnwindSafe for AgentServer<A>where
A: RefUnwindSafe,
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