pub fn with_custom_api_callback<A: CustomApi, C: CustomApiCallback<A>>(
        self,
        callback: C,
    ) -> Builder<A> {
        Builder {
            url: self.url,
            protocol_version: self.protocol_version,
            custom_api_callback: Some(Arc::new(callback)),
            #[cfg(not(target_arch = "wasm32"))]
            certificate: self.certificate,
            _api: PhantomData::default(),
        }
    }
/// Enables using a [`CustomApi`] with this client. `callback` will be
/// invoked when custom API responses are received from the server.
Enables using a [`CustomApi`] with this client. `callback` will be
invoked when custom API responses are received from the server.
Enables using a [ ` CustomApi ` ] with this client . ` callback ` will be invoked when custom API responses are received from the server .
pub fn with_custom_api_callback<A: CustomApi, C: CustomApiCallback<A>>(
        self,
        callback: C,
    ) -> Builder<A> {
        Builder {
            url: self.url,
            protocol_version: self.protocol_version,
            custom_api_callback: Some(Arc::new(callback)),
            #[cfg(not(target_arch = "wasm32"))]
            certificate: self.certificate,
            _api: PhantomData::default(),
        }
    }
pub fn with_custom_api_callback < A : CustomApi , C : CustomApiCallback < A > > ( self , callback : C , ) -> Builder < A > { Builder { url : self . url , protocol_version : self . protocol_version , custom_api_callback : Some ( Arc :: new ( callback ) ) , # [ cfg ( not ( target_arch " " ) ) ] certificate : self . certificate , _api : PhantomData :: default ( ) , } }
Enables using a [`CustomApi`] with this client.
Enables using a [ ` CustomApi ` ] with this client .
self
callback
C
self
callback
C