pub trait Client {
// Required methods
fn result(&self) -> SpeedTestResult;
fn ping(&mut self) -> bool;
fn upload(&mut self) -> bool;
fn download(&mut self) -> bool;
// Provided method
fn run(&mut self) -> bool { ... }
}pub trait Client {
// Required methods
fn result(&self) -> SpeedTestResult;
fn ping(&mut self) -> bool;
fn upload(&mut self) -> bool;
fn download(&mut self) -> bool;
// Provided method
fn run(&mut self) -> bool { ... }
}