pub fn connect(
        &self,
        addr: &SocketAddr,
        server_name: &str,
    ) -> Result<Connecting, quinn::ConnectError> {
        Ok(Connecting {
            settings: self.settings.clone(),
            connecting: self.endpoint.connect(addr, server_name)?,
        })
    }
/// Connect to a remote server endpoint
///
/// Initiates a hanshake with an endpoint. The `server_name` argument is  used to
/// authenticate the server, it must be covered by its certificate.
///
/// This method spawns a driver task for endpoint's IOs management at the QUIC level.
/// Therefore, it must be called in tokio runtime context.
///
/// On success, this method returns a [`Connecting`] future, representing the handhake
/// completion.
///
/// [`Connecting`]: struct.Connecting.html
Connect to a remote server endpoint
Initiates a hanshake with an endpoint. The `server_name` argument is  used to
authenticate the server, it must be covered by its certificate.

This method spawns a driver task for endpoint's IOs management at the QUIC level.
Therefore, it must be called in tokio runtime context.

On success, this method returns a [`Connecting`] future, representing the handhake
completion.


Connect to a remote server endpoint Initiates a hanshake with an endpoint . The ` server_name ` argument is used to authenticate the server it must be covered by its certificate . This method spawns a driver task for endpoint ' s IOs management at the QUIC level . Therefore it must be called in tokio runtime context . On success this method returns a [ ` Connecting ` ] future representing the handhake completion .
pub fn connect(
        &self,
        addr: &SocketAddr,
        server_name: &str,
    ) -> Result<Connecting, quinn::ConnectError> {
        Ok(Connecting {
            settings: self.settings.clone(),
            connecting: self.endpoint.connect(addr, server_name)?,
        })
    }
pub fn connect ( & self , addr : & SocketAddr , server_name : & str , ) -> Result < Connecting , quinn :: ConnectError > { Ok ( Connecting { settings : self . settings . clone ( ) , connecting : self . endpoint . connect ( addr , server_name ) ? , } ) }
Connect to a remote server endpoint
Initiates a hanshake with an endpoint.
Connect to a remote server endpoint Initiates a hanshake with an endpoint .
&self
addr
&SocketAddr
server_name
&str