pub fn bind_with_graceful_shutdown(
        self,
        addr: impl Into<SocketAddr> + 'static,
        signal: impl Future<Output = ()> + Send + 'static,
    ) -> (SocketAddr, impl Future<Output = ()> + 'static) {
        let (addr, srv) = bind!(tls: self, addr);

        let fut = srv
            .with_graceful_shutdown(signal)
            .map(|result| {
            if let Err(err) = result {
                log::error!("server error: {}", err)
            }});
        (addr, fut)
    }
/// Create a server with graceful shutdown signal.
///
/// When the signal completes, the server will start the graceful shutdown
/// process.
///
/// *This function requires the `"tls"` feature.*
Create a server with graceful shutdown signal.
When the signal completes, the server will start the graceful shutdown
process.

This function requires the `"tls"` feature.
Create a server with graceful shutdown signal . When the signal completes the server will start the graceful shutdown process . This function requires the ` " tls " ` feature .
pub fn bind_with_graceful_shutdown(
        self,
        addr: impl Into<SocketAddr> + 'static,
        signal: impl Future<Output = ()> + Send + 'static,
    ) -> (SocketAddr, impl Future<Output = ()> + 'static) {
        let (addr, srv) = bind!(tls: self, addr);
        let fut = srv
            .with_graceful_shutdown(signal)
            .map(|result| {
            if let Err(err) = result {
                log::error!("server error: {}", err)
            }});
        (addr, fut)
    }
pub fn bind_with_graceful_shutdown ( self , addr : impl Into < SocketAddr > + ' static , signal : impl Future < Output = ( ) > + Send + ' static , ) -> ( SocketAddr , impl Future < Output = ( ) > + ' static ) { let ( addr , srv ) = bind ! ( tls self addr ) ; let fut = srv . with_graceful_shutdown ( signal ) . map ( | result | { if let Err ( err ) = result { log :: error ! ( " " err ) } } ) ; ( addr , fut ) }
Create a server with graceful shutdown signal.
Create a server with graceful shutdown signal .
self
addr
impl Into<SocketAddr> + 'static
signal
impl Future<Output = ()> + Send + 'static