INNER CODE UNIT · Rust

impl_client_new

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

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

        quote! {
            impl #client_ident {
                /// Returns a new client stub that sends requests over the given transport.
                #vis fn new<T>(config: ::tarpc::client::Config, transport: T)
                    -> ::tarpc::client::NewClient<
                        Self,
                        ::tarpc::client::RequestDispatch<#request_ident, #response_ident, T>
                    >
                where

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…