pub fn with_socket(
        self,
        socket: UdpSocket,
    ) -> Result<IncomingConnection, quinn::EndpointError> {
        let mut endpoint_builder = quinn::Endpoint::builder();
        endpoint_builder.listen(self.config.build());
        let (_, incoming) = endpoint_builder.with_socket(socket)?;
        Ok(IncomingConnection {
            incoming,
            settings: self.settings,
        })
    }
/// Create a new server attaching it to a bound socket
Create a new server attaching it to a bound socket
Create a new server attaching it to a bound socket
pub fn with_socket(
        self,
        socket: UdpSocket,
    ) -> Result<IncomingConnection, quinn::EndpointError> {
        let mut endpoint_builder = quinn::Endpoint::builder();
        endpoint_builder.listen(self.config.build());
        let (_, incoming) = endpoint_builder.with_socket(socket)?;
        Ok(IncomingConnection {
            incoming,
            settings: self.settings,
        })
    }
pub fn with_socket ( self , socket : UdpSocket , ) -> Result < IncomingConnection , quinn :: EndpointError > { let mut endpoint_builder = quinn :: Endpoint :: builder ( ) ; endpoint_builder . listen ( self . config . build ( ) ) ; let ( _ , incoming ) = endpoint_builder . with_socket ( socket ) ? ; Ok ( IncomingConnection { incoming , settings : self . settings , } ) }
Create a new server attaching it to a bound socket
Create a new server attaching it to a bound socket
self
socket
UdpSocket