Trait quic_rpc_utils::ServiceHandler 
source · pub trait ServiceHandler<T: Service> {
    // Required method
    fn handle_rpc_request<S, E>(
        self: Arc<Self>,
        req: T::Req,
        chan: RpcChannel<S, E, T>,
        rt: &'static Runtime,
    ) -> impl Future<Output = Result<()>> + Send
       where E: ServiceEndpoint<S>,
             S: Service;
}Expand description
服务的处理程序
Required Methods§
sourcefn handle_rpc_request<S, E>(
    self: Arc<Self>,
    req: T::Req,
    chan: RpcChannel<S, E, T>,
    rt: &'static Runtime,
) -> impl Future<Output = Result<()>> + Sendwhere
    E: ServiceEndpoint<S>,
    S: Service,
 
fn handle_rpc_request<S, E>(
    self: Arc<Self>,
    req: T::Req,
    chan: RpcChannel<S, E, T>,
    rt: &'static Runtime,
) -> impl Future<Output = Result<()>> + Sendwhere
    E: ServiceEndpoint<S>,
    S: Service,
Object Safety§
This trait is not object safe.