pub trait Invoker:
Send
+ Sync
+ 'static {
type InvokeStream: Stream<Item = Result<MessagePack, Status>> + Send + 'static;
// Required method
fn invoke<'life0, 'async_trait>(
&'life0 self,
request: Request<Invocation>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::InvokeStream>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with InvokerServer.
Required Associated Types§
Sourcetype InvokeStream: Stream<Item = Result<MessagePack, Status>> + Send + 'static
type InvokeStream: Stream<Item = Result<MessagePack, Status>> + Send + 'static
Server streaming response type for the Invoke method.