pub fn bind(&self, listen_socket_addr: &SocketAddr) -> Result<IncomingConn> {
        let mut quinn_endpoint_builder = quinn::Endpoint::builder();
        quinn_endpoint_builder.listen(self.config.clone());

        let (_endpoint, incoming) = quinn_endpoint_builder
            .bind(&listen_socket_addr)
            .map_err(|err| Error::GeneralError(format!("Failed to bind QUIC endpoint: {}", err)))?;

        Ok(IncomingConn::new(incoming))
    }
// Bind server endpoint to a socket address to start listening for connections on it
Bind server endpoint to a socket address to start listening for connections on it
Bind server endpoint to a socket address to start listening for connections on it
pub fn bind(&self, listen_socket_addr: &SocketAddr) -> Result<IncomingConn> {
        let mut quinn_endpoint_builder = quinn::Endpoint::builder();
        quinn_endpoint_builder.listen(self.config.clone());
        let (_endpoint, incoming) = quinn_endpoint_builder
            .bind(&listen_socket_addr)
            .map_err(|err| Error::GeneralError(format!("Failed to bind QUIC endpoint: {}", err)))?;
        Ok(IncomingConn::new(incoming))
    }
pub fn bind ( & self , listen_socket_addr : & SocketAddr ) -> Result < IncomingConn > { let mut quinn_endpoint_builder = quinn :: Endpoint :: builder ( ) ; quinn_endpoint_builder . listen ( self . config . clone ( ) ) ; let ( _endpoint , incoming ) = quinn_endpoint_builder . bind ( & listen_socket_addr ) . map_err ( | err | Error :: GeneralError ( format ! ( " " err ) ) ) ? ; Ok ( IncomingConn :: new ( incoming ) ) }
Bind server endpoint to a socket address to start listening for connections on it
Bind server endpoint to a socket address to start listening for connections on it
&self
listen_socket_addr
&SocketAddr