INNER CODE UNIT · Rust

struct_client

google/tarpc · plugins/src/lib.rs:703

    fn struct_client(&self) -> TokenStream2 {
        let &Self {
            vis,
            client_ident,
            request_ident,
            response_ident,
            ..
        } = self;

        quote! {
            #[allow(unused)]
            #[derive(Clone, Debug)]
            /// The client stub that makes RPC calls to the server. All request methods return
            /// [Futures](::core::future::Future).
            #vis struct #client_ident<
                Stub = ::tarpc::client::Channel<#request_ident, #response_ident>
            >(Stub);
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…