pub fn build(self) -> Result<Client, quinn::EndpointError> {
        let mut endpoint_builder = quinn::Endpoint::builder();
        endpoint_builder.default_client_config(self.client_config.build());
        let (endpoint, _) = endpoint_builder.bind(&"[::]:0".parse().unwrap())?;

        Ok(Client {
            endpoint,
            settings: self.settings,
        })
    }
/// Create a new client
///
/// This method spawns a task for the QUIC endpoint's IO management, therefore it must
/// be called from tokio runtime context.
Create a new client
This method spawns a task for the QUIC endpoint's IO management, therefore it must
be called from tokio runtime context.
Create a new client This method spawns a task for the QUIC endpoint ' s IO management therefore it must be called from tokio runtime context .
pub fn build(self) -> Result<Client, quinn::EndpointError> {
        let mut endpoint_builder = quinn::Endpoint::builder();
        endpoint_builder.default_client_config(self.client_config.build());
        let (endpoint, _) = endpoint_builder.bind(&"[::]:0".parse().unwrap())?;
        Ok(Client {
            endpoint,
            settings: self.settings,
        })
    }
pub fn build ( self ) -> Result < Client , quinn :: EndpointError > { let mut endpoint_builder = quinn :: Endpoint :: builder ( ) ; endpoint_builder . default_client_config ( self . client_config . build ( ) ) ; let ( endpoint , _ ) = endpoint_builder . bind ( & " " . parse ( ) . unwrap ( ) ) ? ; Ok ( Client { endpoint , settings : self . settings , } ) }
Create a new client
This method spawns a task for the QUIC endpoint's IO management, therefore it must
be called from tokio runtime context.
Create a new client This method spawns a task for the QUIC endpoint ' s IO management therefore it must be called from tokio runtime context .
self