/// Triggers shutdown by notifying the handler to close the channel
/// receiver.
Triggers shutdown by notifying the handler to close the channel
receiver.
Triggers shutdown by notifying the handler to close the channel receiver .
fn drop(&mut self) {
        info!(self.log, "Shutting down XNet endpoint");
        // Request graceful shutdown of the HTTP server and the background thread.
        self.shutdown_notify.notify_one();
        self.request_sender
            .send(WorkerMessage::Stop)
            .expect("failed to send stop signal");
        // Join the background worker.
        if let Some(h) = self.handler_thread_handle.take() {
            h.join().expect("could not join handler thread");
        }
        info!(self.log, "XNet Endpoint shut down");
    }
fn drop ( & mut self ) { info ! ( self log " " ) ; // Request graceful shutdown of the HTTP server and the background thread. self . shutdown_notify . notify_one ( ) ; self . request_sender . send ( WorkerMessage :: Stop ) . expect ( " " ) ; // Join the background worker. if let Some ( h ) = self . handler_thread_handle . take ( ) { h . join ( ) . expect ( " " ) ; } info ! ( self log " " ) ; }
Triggers shutdown by notifying the handler to close the channel
receiver.
Triggers shutdown by notifying the handler to close the channel receiver .
&mut self