fn send_bye_and_disconnect(&self) {
        self.send_body(BYE.to_string());
        self.state.store(AliceState::Bye);
        // tell the network to close the connection, this will also disconnect Alice
        log::debug!("{} diconnecting from the remote", self.logtag);
        if self.net_sender.send(NetCmd::CloseConn(self.conn_id)).is_err() {
            log::warn!("{} failed to send close", self.logtag);
        }
    }
// respond to the bye. Send BYE html as the body.
respond to the bye. Send BYE html as the body.
respond to the bye . Send BYE html as the body .
fn send_bye_and_disconnect(&self) {
        self.send_body(BYE.to_string());
        self.state.store(AliceState::Bye);
        // tell the network to close the connection, this will also disconnect Alice
        log::debug!("{} diconnecting from the remote", self.logtag);
        if self.net_sender.send(NetCmd::CloseConn(self.conn_id)).is_err() {
            log::warn!("{} failed to send close", self.logtag);
        }
    }
fn send_bye_and_disconnect ( & self ) { self . send_body ( BYE . to_string ( ) ) ; self . state . store ( AliceState :: Bye ) ; // tell the network to close the connection, this will also disconnect Alice log :: debug ! ( " " self logtag ) ; if self . net_sender . send ( NetCmd :: CloseConn ( self . conn_id ) ) . is_err ( ) { log :: warn ! ( " " self logtag ) ; } }
respond to the bye.
respond to the bye .
&self