pub fn stop_server(&mut self) -> StopStatus {
        if let Some(i) = self.stop_channel.take() {
            if i.send(()).is_ok() {
                StopStatus::Stopped
            } else {
                StopStatus::AlreadyStopped
            }
        } else {
            StopStatus::NotYetStarted
        }
    }
/// Call to stop the server.
/// Signals the server to stop and then blocks until server is stopped.
Call to stop the server.
Signals the server to stop and then blocks until server is stopped.
Call to stop the server . Signals the server to stop and then blocks until server is stopped .
pub fn stop_server(&mut self) -> StopStatus {
        if let Some(i) = self.stop_channel.take() {
            if i.send(()).is_ok() {
                StopStatus::Stopped
            } else {
                StopStatus::AlreadyStopped
            }
        } else {
            StopStatus::NotYetStarted
        }
    }
pub fn stop_server ( & mut self ) -> StopStatus { if let Some ( i ) = self . stop_channel . take ( ) { if i . send ( ( ) ) . is_ok ( ) { StopStatus :: Stopped } else { StopStatus :: AlreadyStopped } } else { StopStatus :: NotYetStarted } }
Call to stop the server.
Call to stop the server .
&mut self
&mut self