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§

Source

type InvokeStream: Stream<Item = Result<MessagePack, Status>> + Send + 'static

Server streaming response type for the Invoke method.

Required Methods§

Source

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,

Implementors§

Source§

impl<T> Invoker for InvokerService<T>
where T: Service + Sync + Send + 'static,