pub enum TestEvent {
Show 16 variants
Status(String),
LocationDetected {
city: String,
country: String,
isp: Option<String>,
source: String,
},
ServerPoolBuilt {
count: usize,
},
NearbyServersFound {
count: usize,
},
ServersSelected {
servers: Vec<SelectedServer>,
},
PrimarySelected {
name: String,
location: String,
distance_km: f64,
},
PhaseStarted(Phase),
DownloadSample {
mbps: f64,
peak_mbps: f64,
elapsed_secs: f64,
},
UploadSample {
mbps: f64,
peak_mbps: f64,
elapsed_secs: f64,
},
DownloadComplete {
mbps: f64,
},
UploadComplete {
mbps: f64,
},
LatencyProgress {
avg_ms: f64,
},
LatencyComplete {
avg_ms: f64,
},
JitterComplete {
jitter_ms: f64,
packet_loss_percent: f64,
},
DiagnosticsComplete(Box<NetworkDiagnostics>),
Completed(Box<SpeedTestResult>),
}Expand description
A progress event emitted while running a test.
Variants§
Status(String)
A generic informational status line.
LocationDetected
The caller’s location was resolved.
ServerPoolBuilt
The candidate server pool was built.
NearbyServersFound
Nearby servers were discovered.
ServersSelected
The best servers were selected (fastest first).
Fields
§
servers: Vec<SelectedServer>PrimarySelected
The primary (fastest) server was chosen.
PhaseStarted(Phase)
A new phase started.
DownloadSample
A live download-throughput sample (megabits per second).
UploadSample
A live upload-throughput sample (megabits per second).
DownloadComplete
Final download throughput.
UploadComplete
Final upload throughput.
LatencyProgress
A running average latency update.
LatencyComplete
Final measured latency.
JitterComplete
Final jitter and packet-loss.
DiagnosticsComplete(Box<NetworkDiagnostics>)
Diagnostics finished.
Completed(Box<SpeedTestResult>)
The whole speed test finished.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestEvent
impl RefUnwindSafe for TestEvent
impl Send for TestEvent
impl Sync for TestEvent
impl Unpin for TestEvent
impl UnsafeUnpin for TestEvent
impl UnwindSafe for TestEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more