pub fn try_bind_ephemeral(
        self,
        addr: impl Into<SocketAddr> + 'static,
    ) -> Result<(SocketAddr, impl Future<Output = ()> + 'static), hyper::error::Error>
    {
        let addr = addr.into();
        let (addr, srv) = try_bind!(self, &addr)?;
        let srv = srv.map(|result| {
            if let Err(err) = result {
                log::error!("server error: {}", err)
            }
        });

        Ok((addr, srv))
    }
/// Tried to bind a possibly ephemeral socket address.
///
/// Returns a `Result` which fails in case we are unable to bind with the
/// underlying error.
///
/// Returns the bound address and a `Future` that can be executed on
/// any runtime.
Tried to bind a possibly ephemeral socket address.
Returns a `Result` which fails in case we are unable to bind with the
underlying error.

Returns the bound address and a `Future` that can be executed on
any runtime.
Tried to bind a possibly ephemeral socket address . Returns a ` Result ` which fails in case we are unable to bind with the underlying error . Returns the bound address and a ` Future ` that can be executed on any runtime .
pub fn try_bind_ephemeral(
        self,
        addr: impl Into<SocketAddr> + 'static,
    ) -> Result<(SocketAddr, impl Future<Output = ()> + 'static), hyper::error::Error>
    {
        let addr = addr.into();
        let (addr, srv) = try_bind!(self, &addr)?;
        let srv = srv.map(|result| {
            if let Err(err) = result {
                log::error!("server error: {}", err)
            }
        });
        Ok((addr, srv))
    }
pub fn try_bind_ephemeral ( self , addr : impl Into < SocketAddr > + ' static , ) -> Result < ( SocketAddr , impl Future < Output = ( ) > + ' static ) , hyper :: error :: Error > { let addr = addr . into ( ) ; let ( addr , srv ) = try_bind ! ( self addr ) ? ; let srv = srv . map ( | result | { if let Err ( err ) = result { log :: error ! ( " " err ) } } ) ; Ok ( ( addr , srv ) ) }
Tried to bind a possibly ephemeral socket address.
Tried to bind a possibly ephemeral socket address .
self
addr
impl Into<SocketAddr> + 'static