pub trait Greeter:
Send
+ Sync
+ 'static {
type SayHelloStreamStream: Stream<Item = Result<HelloReply, Status>> + Send + 'static;
type ChatStream: Stream<Item = Result<HelloReply, Status>> + Send + 'static;
// Required methods
fn say_hello<'life0, 'async_trait>(
&'life0 self,
request: Request<HelloRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<HelloReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn say_hello_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<HelloRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::SayHelloStreamStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn say_hello_client_stream<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<HelloRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<HelloReply>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn chat<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<HelloRequest>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ChatStream>, 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 GreeterServer.
Required Associated Types§
Sourcetype SayHelloStreamStream: Stream<Item = Result<HelloReply, Status>> + Send + 'static
type SayHelloStreamStream: Stream<Item = Result<HelloReply, Status>> + Send + 'static
Server streaming response type for the SayHelloStream method.
Sourcetype ChatStream: Stream<Item = Result<HelloReply, Status>> + Send + 'static
type ChatStream: Stream<Item = Result<HelloReply, Status>> + Send + 'static
Server streaming response type for the Chat method.