Trait UnaryService
pub trait UnaryService<R>:
Send
+ Sync
+ 'static {
type Response;
// Required method
fn serve(
&self,
request: Request<R>,
) -> impl Future<Output = Result<Response<Self::Response>, Status>>;
}Expand description
Required Associated Types§
type Response
type Response
Protobuf response message type
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.