pub trait StreamingService<RequestStream> {
type Response;
type ResponseStream: Stream<Item = Self::Response, Error = Status>;
type Future: Future<Item = Response<Self::ResponseStream>, Error = Status>;
// Required method
fn call(&mut self, request: Request<RequestStream>) -> Self::Future;
}Expand description
A specialization of tower_service::Service.
Existing tower_service::Service implementations with the correct form will
automatically implement GrpcService.
Required Associated Types§
Sourcetype ResponseStream: Stream<Item = Self::Response, Error = Status>
type ResponseStream: Stream<Item = Self::Response, Error = Status>
Stream of outbound response messages