pub fn bind_ephemeral(
        self,
        addr: impl Into<SocketAddr> + 'static,
    ) -> (SocketAddr, impl Future<Output = ()> + 'static) {
        let (addr, srv) = bind!(self, addr);
        let srv = srv.map(|result| {
            if let Err(err) = result {
                log::error!("server error: {}", err)
            }
        });

        (addr, srv)
    }
/// Bind to a possibly ephemeral socket address.
///
/// Returns the bound address and a `Future` that can be executed on
/// any runtime.
///
/// # Panics
///
/// Panics if we are unable to bind to the provided address.
Bind to a possibly ephemeral socket address.
Returns the bound address and a `Future` that can be executed on
any runtime.
Bind to a possibly ephemeral socket address . Returns the bound address and a ` Future ` that can be executed on any runtime .
pub fn bind_ephemeral(
        self,
        addr: impl Into<SocketAddr> + 'static,
    ) -> (SocketAddr, impl Future<Output = ()> + 'static) {
        let (addr, srv) = bind!(self, addr);
        let srv = srv.map(|result| {
            if let Err(err) = result {
                log::error!("server error: {}", err)
            }
        });
        (addr, srv)
    }
pub fn bind_ephemeral ( self , addr : impl Into < SocketAddr > + ' static , ) -> ( SocketAddr , impl Future < Output = ( ) > + ' static ) { let ( addr , srv ) = bind ! ( self addr ) ; let srv = srv . map ( | result | { if let Err ( err ) = result { log :: error ! ( " " err ) } } ) ; ( addr , srv ) }
Bind to a possibly ephemeral socket address.
Bind to a possibly ephemeral socket address .
self
addr
impl Into<SocketAddr> + 'static
panics
Panics if we are unable to bind to the provided address.
Panics if we are unable to bind to the provided address .