first pass at a generic grpc impl

This commit is contained in:
Lucio Franco
2019-08-13 17:33:44 -04:00
parent c11de766ca
commit 9fbfec4c62
7 changed files with 474 additions and 243 deletions
+10 -6
View File
@@ -32,13 +32,17 @@ impl MyGreeter {
Ok(Response::new(()))
}
pub async fn server_stream(&self, request: Request<()>) -> Result<impl Stream, Status> {
unimplemented!()
}
// pub async fn streaming(&self, request: Request<impl Stream>) -> Result<Response<impl Stream>, Status> {
// unimplemented!()
// }
pub async fn client_stream(&self, request: Request<impl Stream>) -> Result<(), Status> {
unimplemented!()
}
// pub async fn server_stream(&self, request: Request<()>) -> Result<impl Stream, Status> {
// unimplemented!()
// }
// pub async fn client_stream(&self, request: Request<impl Stream>) -> Result<(), Status> {
// unimplemented!()
// }
}
#[tokio::test]