pub unsafe fn save_data(&self, tip: Tip) {
        self.add_item_to_tip_list(&tip, false);

        let receiver = CENTRAL_COMMAND.send_background(Command::AddTipToLocalTips(tip));
        let response = CentralCommand::recv(&receiver);
        match response {
            Response::Success => {},
            Response::Error(error) => show_dialog(&self.list, error, false),
            _ => panic!("{}{:?}", THREADS_COMMUNICATION_ERROR, response),
        };
    }
/// This function saves a tip to the local tips list for the current path.
This function saves a tip to the local tips list for the current path.
This function saves a tip to the local tips list for the current path .
pub unsafe fn save_data(&self, tip: Tip) {
        self.add_item_to_tip_list(&tip, false);
        let receiver = CENTRAL_COMMAND.send_background(Command::AddTipToLocalTips(tip));
        let response = CentralCommand::recv(&receiver);
        match response {
            Response::Success => {},
            Response::Error(error) => show_dialog(&self.list, error, false),
            _ => panic!("{}{:?}", THREADS_COMMUNICATION_ERROR, response),
        };
    }
pub unsafe fn save_data ( & self , tip : Tip ) { self . add_item_to_tip_list ( & tip , false ) ; let receiver = CENTRAL_COMMAND . send_background ( Command :: AddTipToLocalTips ( tip ) ) ; let response = CentralCommand :: recv ( & receiver ) ; match response { Response :: Success => { } , Response :: Error ( error ) => show_dialog ( & self . list , error , false ) , _ => panic ! ( " " THREADS_COMMUNICATION_ERROR response ) , } ; }
This function saves a tip to the local tips list for the current path.
This function saves a tip to the local tips list for the current path .
&self
tip
Tip
&self
tip
Tip