Skip to main content

save_result

Function save_result 

Source
pub fn save_result(result: &TestResult) -> Result<(), SpeedtestError>
Expand description

Save a test result to the history file.

ยงErrors

Returns SpeedtestError::IoError if reading or writing the history file fails. Returns SpeedtestError::ParseJson if the history file contains invalid JSON.