pub async fn shutdown(self) -> Reconnect {
        let Self {
            tx,
            task,
            running,
            run,
            addr,
            authority,
            tls,
            ..
        } = self;
        // signal the client task to shut down now.
        drop(tx);
        task.await.unwrap();
        running.await;
        Reconnect {
            authority,
            run,
            addr,
            tls,
        }
    }
/// Shut down the client, returning a type that can be used to initiate a
/// new client connection to that target.
Shut down the client, returning a type that can be used to initiate a
new client connection to that target.
Shut down the client returning a type that can be used to initiate a new client connection to that target .
pub async fn shutdown(self) -> Reconnect {
        let Self {
            tx,
            task,
            running,
            run,
            addr,
            authority,
            tls,
            ..
        } = self;
        // signal the client task to shut down now.
        drop(tx);
        task.await.unwrap();
        running.await;
        Reconnect {
            authority,
            run,
            addr,
            tls,
        }
    }
pub async fn shutdown ( self ) -> Reconnect { let Self { tx , task , running , run , addr , authority , tls , .. } = self ; // signal the client task to shut down now. drop ( tx ) ; task . await . unwrap ( ) ; running . await ; Reconnect { authority , run , addr , tls , } }
Shut down the client, returning a type that can be used to initiate a
new client connection to that target.
Shut down the client returning a type that can be used to initiate a new client connection to that target .
self
self