Home
last modified time | relevance | path

Searched refs:summary (Results 1 – 3 of 3) sorted by relevance

/tonic/examples/src/routeguide/
H A Dserver.rs72 let mut summary = RouteSummary::default(); in record_route() localVariable
82 summary.point_count += 1; in record_route()
87 summary.feature_count += 1; in record_route()
93 summary.distance += calc_distance(last_point, &point); in record_route()
99 summary.elapsed_time = now.elapsed().as_secs() as i32; in record_route()
101 Ok(Response::new(summary)) in record_route()
/tonic/.github/ISSUE_TEMPLATE/
H A Dbug_report.md49 <short summary of the bug>
/tonic/examples/
H A Drouteguide-tutorial.md21 on their route, create a summary of their route, and exchange route information such as traffic
445 let mut summary = RouteSummary::default();
451 summary.point_count += 1;
455 summary.feature_count += 1;
460 summary.distance += calc_distance(last_point, &point);
466 summary.elapsed_time = now.elapsed().as_secs() as i32;
468 Ok(Response::new(summary))
473 In other words, we build a summary value as we process each `Point` in our stream, one by one.