#![allow(unused_imports)] use std::sync::Arc; use tokio_stream::{Stream, StreamExt}; use tonic::{Request, Response, Status}; tonic::include_proto!("test"); #[derive(Debug, Default)] struct Svc; #[tonic::async_trait] impl test_server::Test for Svc { async fn test_request( self: Arc, req: Request, ) -> Result, Status> { Ok(Response::new(req.into_inner())) } }