unsafe fn publish_tip(&self) -> Result<()> {
        let tip = self.get_tip_from_selection();

        let receiver = CENTRAL_COMMAND.send_background(Command::PublishTipById(*tip.get_ref_id()));
        let response = CentralCommand::recv(&receiver);
        match response {
            Response::Success => Ok(()),
            Response::Error(error) => Err(error),
            _ => panic!("{}{:?}", THREADS_COMMUNICATION_ERROR, response),
        }
    }
/// This function takes care of pulishing the selected tip to github.
This function takes care of pulishing the selected tip to github.
This function takes care of pulishing the selected tip to github .
unsafe fn publish_tip(&self) -> Result<()> {
        let tip = self.get_tip_from_selection();
        let receiver = CENTRAL_COMMAND.send_background(Command::PublishTipById(*tip.get_ref_id()));
        let response = CentralCommand::recv(&receiver);
        match response {
            Response::Success => Ok(()),
            Response::Error(error) => Err(error),
            _ => panic!("{}{:?}", THREADS_COMMUNICATION_ERROR, response),
        }
    }
unsafe fn publish_tip ( & self ) -> Result < ( ) > { let tip = self . get_tip_from_selection ( ) ; let receiver = CENTRAL_COMMAND . send_background ( Command :: PublishTipById ( * tip . get_ref_id ( ) ) ) ; let response = CentralCommand :: recv ( & receiver ) ; match response { Response :: Success => Ok ( ( ) ) , Response :: Error ( error ) => Err ( error ) , _ => panic ! ( " " THREADS_COMMUNICATION_ERROR response ) , } }
This function takes care of pulishing the selected tip to github.
This function takes care of pulishing the selected tip to github .
&self
&self