pub trait ServiceHandler<S: Service, C: ChannelTypes<S> = BoxedChannelTypes<S>> {
// Required method
fn handle_rpc_request(
self: Arc<Self>,
req: S::Req,
chan: RpcChannel<S, C>,
rt: &'static Runtime,
) -> impl Future<Output = Result<()>> + Send;
}
Expand description
服务的处理程序
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.