pub async fn try_bind(
        self,
        addr: impl Into<SocketAddr> + 'static,
    ) {
        let addr = addr.into();
        let srv = match try_bind!(self, &addr) {
            Ok((_, srv)) => srv,
            Err(err) => {
                log::error!("error binding to {}: {}", addr, err);
                return;
            }
        };

        srv.map(|result| {
            if let Err(err) = result {
                log::error!("server error: {}", err)
            }
        }).await;
    }
/// Bind to a socket address, returning a `Future` that can be
/// executed on any runtime.
///
/// In case we are unable to bind to the specified address, resolves to an
/// error and logs the reason.
Bind to a socket address, returning a `Future` that can be
executed on any runtime.

In case we are unable to bind to the specified address, resolves to an
error and logs the reason.
Bind to a socket address returning a ` Future ` that can be executed on any runtime . In case we are unable to bind to the specified address resolves to an error and logs the reason .
pub async fn try_bind(
        self,
        addr: impl Into<SocketAddr> + 'static,
    ) {
        let addr = addr.into();
        let srv = match try_bind!(self, &addr) {
            Ok((_, srv)) => srv,
            Err(err) => {
                log::error!("error binding to {}: {}", addr, err);
                return;
            }
        };
        srv.map(|result| {
            if let Err(err) = result {
                log::error!("server error: {}", err)
            }
        }).await;
    }
pub async fn try_bind ( self , addr : impl Into < SocketAddr > + ' static , ) { let addr = addr . into ( ) ; let srv = match try_bind ! ( self addr ) { Ok ( ( _ , srv ) ) => srv , Err ( err ) => { log :: error ! ( " " addr err ) ; return ; } } ; srv . map ( | result | { if let Err ( err ) = result { log :: error ! ( " " err ) } } ) . await ; }
Bind to a socket address, returning a `Future` that can be
executed on any runtime.
Bind to a socket address returning a ` Future ` that can be executed on any runtime .
self
addr
impl Into<SocketAddr> + 'static