pub fn start_training(&mut self, client_state: ClientState) -> StartTrainingResponse {
        if client_state == ClientState::Selected && !self.is_training_complete {
            info!("accepting start training request");
            StartTrainingResponse::Accept
        } else {
            info!(
                "rejecting start training request (client state = {}, training_complete = {}",
                client_state, self.is_training_complete
            );
            StartTrainingResponse::Reject
        }
    }
/// Handle a start training request for the given client.
///
/// # Returns
///
/// This method returns the response to send back to the client.
Handle a start training request for the given client.
Handle a start training request for the given client .
pub fn start_training(&mut self, client_state: ClientState) -> StartTrainingResponse {
        if client_state == ClientState::Selected && !self.is_training_complete {
            info!("accepting start training request");
            StartTrainingResponse::Accept
        } else {
            info!(
                "rejecting start training request (client state = {}, training_complete = {}",
                client_state, self.is_training_complete
            );
            StartTrainingResponse::Reject
        }
    }
pub fn start_training ( & mut self , client_state : ClientState ) -> StartTrainingResponse { if client_state == ClientState :: Selected && ! self . is_training_complete { info ! ( " " ) ; StartTrainingResponse :: Accept } else { info ! ( " " client_state self is_training_complete ) ; StartTrainingResponse :: Reject } }
Handle a start training request for the given client.
Handle a start training request for the given client .
&mut self
client_state
ClientState
This method returns the response to send back to the client.
This method returns the response to send back to the client .
&mut self
client_state
ClientState