|
@@ -9,10 +9,11 @@
|
|
|
clippy::too_many_arguments
|
|
clippy::too_many_arguments
|
|
|
)]
|
|
)]
|
|
|
// AUTO GENERATED FILE, DO NOT EDIT.
|
|
// AUTO GENERATED FILE, DO NOT EDIT.
|
|
|
-// Generated by `flutter_rust_bridge`@ 1.77.1.
|
|
|
|
|
|
|
+// Generated by `flutter_rust_bridge`@ 1.80.1.
|
|
|
|
|
|
|
|
use crate::api::*;
|
|
use crate::api::*;
|
|
|
use core::panic::UnwindSafe;
|
|
use core::panic::UnwindSafe;
|
|
|
|
|
+use flutter_rust_bridge::rust2dart::IntoIntoDart;
|
|
|
use flutter_rust_bridge::*;
|
|
use flutter_rust_bridge::*;
|
|
|
use std::ffi::c_void;
|
|
use std::ffi::c_void;
|
|
|
use std::sync::Arc;
|
|
use std::sync::Arc;
|
|
@@ -22,7 +23,7 @@ use std::sync::Arc;
|
|
|
// Section: wire functions
|
|
// Section: wire functions
|
|
|
|
|
|
|
|
fn wire_parse_map_package_impl(port_: MessagePort, data: impl Wire2Api<Vec<u8>> + UnwindSafe) {
|
|
fn wire_parse_map_package_impl(port_: MessagePort, data: impl Wire2Api<Vec<u8>> + UnwindSafe) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, RustOpaque<RwLock<GeoMapInfo>>>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "parse_map_package",
|
|
debug_name: "parse_map_package",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -38,7 +39,7 @@ fn wire_run_map_package_map_ext_opaque_impl(
|
|
|
port_: MessagePort,
|
|
port_: MessagePort,
|
|
|
map_package: impl Wire2Api<RustOpaque<RwLock<GeoMapInfo>>> + UnwindSafe,
|
|
map_package: impl Wire2Api<RustOpaque<RwLock<GeoMapInfo>>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, String>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_map_package_map_ext_opaque",
|
|
debug_name: "run_map_package_map_ext_opaque",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -55,7 +56,7 @@ fn wire_run_map_package_set_dst_size_opaque_impl(
|
|
|
map_package: impl Wire2Api<RustOpaque<RwLock<GeoMapInfo>>> + UnwindSafe,
|
|
map_package: impl Wire2Api<RustOpaque<RwLock<GeoMapInfo>>> + UnwindSafe,
|
|
|
dst_size: impl Wire2Api<Size> + UnwindSafe,
|
|
dst_size: impl Wire2Api<Size> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, ()>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_map_package_set_dst_size_opaque",
|
|
debug_name: "run_map_package_set_dst_size_opaque",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -77,7 +78,7 @@ fn wire_run_map_package_get_dst_size_opaque_impl(
|
|
|
port_: MessagePort,
|
|
port_: MessagePort,
|
|
|
map_package: impl Wire2Api<RustOpaque<RwLock<GeoMapInfo>>> + UnwindSafe,
|
|
map_package: impl Wire2Api<RustOpaque<RwLock<GeoMapInfo>>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, mirror_Size>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_map_package_get_dst_size_opaque",
|
|
debug_name: "run_map_package_get_dst_size_opaque",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -85,11 +86,7 @@ fn wire_run_map_package_get_dst_size_opaque_impl(
|
|
|
},
|
|
},
|
|
|
move || {
|
|
move || {
|
|
|
let api_map_package = map_package.wire2api();
|
|
let api_map_package = map_package.wire2api();
|
|
|
- move |task_callback| {
|
|
|
|
|
- Ok(mirror_Size(run_map_package_get_dst_size_opaque(
|
|
|
|
|
- api_map_package,
|
|
|
|
|
- )))
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ move |task_callback| Ok(run_map_package_get_dst_size_opaque(api_map_package))
|
|
|
},
|
|
},
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
@@ -98,7 +95,7 @@ fn wire_run_map_package_pic_to_position_opaque_impl(
|
|
|
map_package: impl Wire2Api<RustOpaque<RwLock<GeoMapInfo>>> + UnwindSafe,
|
|
map_package: impl Wire2Api<RustOpaque<RwLock<GeoMapInfo>>> + UnwindSafe,
|
|
|
on_pic: impl Wire2Api<Offset> + UnwindSafe,
|
|
on_pic: impl Wire2Api<Offset> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, mirror_Position>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_map_package_pic_to_position_opaque",
|
|
debug_name: "run_map_package_pic_to_position_opaque",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -108,10 +105,10 @@ fn wire_run_map_package_pic_to_position_opaque_impl(
|
|
|
let api_map_package = map_package.wire2api();
|
|
let api_map_package = map_package.wire2api();
|
|
|
let api_on_pic = on_pic.wire2api();
|
|
let api_on_pic = on_pic.wire2api();
|
|
|
move |task_callback| {
|
|
move |task_callback| {
|
|
|
- Ok(mirror_Position(run_map_package_pic_to_position_opaque(
|
|
|
|
|
|
|
+ Ok(run_map_package_pic_to_position_opaque(
|
|
|
api_map_package,
|
|
api_map_package,
|
|
|
api_on_pic,
|
|
api_on_pic,
|
|
|
- )))
|
|
|
|
|
|
|
+ ))
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
)
|
|
)
|
|
@@ -121,7 +118,7 @@ fn wire_run_map_package_position_to_pic_opaque_impl(
|
|
|
map_package: impl Wire2Api<RustOpaque<RwLock<GeoMapInfo>>> + UnwindSafe,
|
|
map_package: impl Wire2Api<RustOpaque<RwLock<GeoMapInfo>>> + UnwindSafe,
|
|
|
position: impl Wire2Api<Position> + UnwindSafe,
|
|
position: impl Wire2Api<Position> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, mirror_Offset>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_map_package_position_to_pic_opaque",
|
|
debug_name: "run_map_package_position_to_pic_opaque",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -131,10 +128,10 @@ fn wire_run_map_package_position_to_pic_opaque_impl(
|
|
|
let api_map_package = map_package.wire2api();
|
|
let api_map_package = map_package.wire2api();
|
|
|
let api_position = position.wire2api();
|
|
let api_position = position.wire2api();
|
|
|
move |task_callback| {
|
|
move |task_callback| {
|
|
|
- Ok(mirror_Offset(run_map_package_position_to_pic_opaque(
|
|
|
|
|
|
|
+ Ok(run_map_package_position_to_pic_opaque(
|
|
|
api_map_package,
|
|
api_map_package,
|
|
|
api_position,
|
|
api_position,
|
|
|
- )))
|
|
|
|
|
|
|
+ ))
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
)
|
|
)
|
|
@@ -143,7 +140,7 @@ fn wire_run_map_package_map_image_data_opaque_impl(
|
|
|
port_: MessagePort,
|
|
port_: MessagePort,
|
|
|
map_package: impl Wire2Api<RustOpaque<RwLock<GeoMapInfo>>> + UnwindSafe,
|
|
map_package: impl Wire2Api<RustOpaque<RwLock<GeoMapInfo>>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, Vec<u8>>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_map_package_map_image_data_opaque",
|
|
debug_name: "run_map_package_map_image_data_opaque",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -160,7 +157,7 @@ fn wire_run_map_package_is_in_hot_zone_opaque_impl(
|
|
|
map_package: impl Wire2Api<RustOpaque<RwLock<GeoMapInfo>>> + UnwindSafe,
|
|
map_package: impl Wire2Api<RustOpaque<RwLock<GeoMapInfo>>> + UnwindSafe,
|
|
|
position: impl Wire2Api<Position> + UnwindSafe,
|
|
position: impl Wire2Api<Position> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, Option<ZoneType>>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_map_package_is_in_hot_zone_opaque",
|
|
debug_name: "run_map_package_is_in_hot_zone_opaque",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -196,7 +193,7 @@ fn wire_distance_meter_between_impl(
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
fn wire_new_exercise_impl(port_: MessagePort) {
|
|
fn wire_new_exercise_impl(port_: MessagePort) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, RustOpaque<RwLock<Exercise>>>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "new_exercise",
|
|
debug_name: "new_exercise",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -214,7 +211,7 @@ fn wire_run_exercise_set_impl(
|
|
|
height_cm: impl Wire2Api<f64> + UnwindSafe,
|
|
height_cm: impl Wire2Api<f64> + UnwindSafe,
|
|
|
rhr: impl Wire2Api<f64> + UnwindSafe,
|
|
rhr: impl Wire2Api<f64> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, ()>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_set",
|
|
debug_name: "run_exercise_set",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -245,7 +242,7 @@ fn wire_run_exercise_hr_push_impl(
|
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
|
hr: impl Wire2Api<HR> + UnwindSafe,
|
|
hr: impl Wire2Api<HR> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, ()>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_hr_push",
|
|
debug_name: "run_exercise_hr_push",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -263,7 +260,7 @@ fn wire_run_exercise_hr_list_add_impl(
|
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
|
hr_list: impl Wire2Api<Vec<HR>> + UnwindSafe,
|
|
hr_list: impl Wire2Api<Vec<HR>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, ()>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_hr_list_add",
|
|
debug_name: "run_exercise_hr_list_add",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -280,7 +277,7 @@ fn wire_run_exercise_clear_impl(
|
|
|
port_: MessagePort,
|
|
port_: MessagePort,
|
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, ()>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_clear",
|
|
debug_name: "run_exercise_clear",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -296,7 +293,7 @@ fn wire_run_exercise_chart_hr_history_impl(
|
|
|
port_: MessagePort,
|
|
port_: MessagePort,
|
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, Vec<mirror_ChartPoint>>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_chart_hr_history",
|
|
debug_name: "run_exercise_chart_hr_history",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -304,12 +301,7 @@ fn wire_run_exercise_chart_hr_history_impl(
|
|
|
},
|
|
},
|
|
|
move || {
|
|
move || {
|
|
|
let api_exercise = exercise.wire2api();
|
|
let api_exercise = exercise.wire2api();
|
|
|
- move |task_callback| {
|
|
|
|
|
- Ok(run_exercise_chart_hr_history(api_exercise)
|
|
|
|
|
- .into_iter()
|
|
|
|
|
- .map(|v| mirror_ChartPoint(v))
|
|
|
|
|
- .collect::<Vec<_>>())
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ move |task_callback| Ok(run_exercise_chart_hr_history(api_exercise))
|
|
|
},
|
|
},
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
@@ -317,7 +309,7 @@ fn wire_run_exercise_chart_ei_impl(
|
|
|
port_: MessagePort,
|
|
port_: MessagePort,
|
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, Vec<mirror_ChartPoint>>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_chart_ei",
|
|
debug_name: "run_exercise_chart_ei",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -325,12 +317,7 @@ fn wire_run_exercise_chart_ei_impl(
|
|
|
},
|
|
},
|
|
|
move || {
|
|
move || {
|
|
|
let api_exercise = exercise.wire2api();
|
|
let api_exercise = exercise.wire2api();
|
|
|
- move |task_callback| {
|
|
|
|
|
- Ok(run_exercise_chart_ei(api_exercise)
|
|
|
|
|
- .into_iter()
|
|
|
|
|
- .map(|v| mirror_ChartPoint(v))
|
|
|
|
|
- .collect::<Vec<_>>())
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ move |task_callback| Ok(run_exercise_chart_ei(api_exercise))
|
|
|
},
|
|
},
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
@@ -338,7 +325,7 @@ fn wire_run_exercise_chart_ei_5min_impl(
|
|
|
port_: MessagePort,
|
|
port_: MessagePort,
|
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, Vec<mirror_ChartPoint>>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_chart_ei_5min",
|
|
debug_name: "run_exercise_chart_ei_5min",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -346,12 +333,7 @@ fn wire_run_exercise_chart_ei_5min_impl(
|
|
|
},
|
|
},
|
|
|
move || {
|
|
move || {
|
|
|
let api_exercise = exercise.wire2api();
|
|
let api_exercise = exercise.wire2api();
|
|
|
- move |task_callback| {
|
|
|
|
|
- Ok(run_exercise_chart_ei_5min(api_exercise)
|
|
|
|
|
- .into_iter()
|
|
|
|
|
- .map(|v| mirror_ChartPoint(v))
|
|
|
|
|
- .collect::<Vec<_>>())
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ move |task_callback| Ok(run_exercise_chart_ei_5min(api_exercise))
|
|
|
},
|
|
},
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
@@ -359,7 +341,7 @@ fn wire_run_exercise_hr_min_impl(
|
|
|
port_: MessagePort,
|
|
port_: MessagePort,
|
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, i32>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_hr_min",
|
|
debug_name: "run_exercise_hr_min",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -375,7 +357,7 @@ fn wire_run_exercise_hr_max_impl(
|
|
|
port_: MessagePort,
|
|
port_: MessagePort,
|
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, i32>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_hr_max",
|
|
debug_name: "run_exercise_hr_max",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -391,7 +373,7 @@ fn wire_run_exercise_hr_mean_impl(
|
|
|
port_: MessagePort,
|
|
port_: MessagePort,
|
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, i32>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_hr_mean",
|
|
debug_name: "run_exercise_hr_mean",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -408,7 +390,7 @@ fn wire_run_exercise_hr_percent_impl(
|
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
|
hr: impl Wire2Api<i32> + UnwindSafe,
|
|
hr: impl Wire2Api<i32> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, f64>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_hr_percent",
|
|
debug_name: "run_exercise_hr_percent",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -425,7 +407,7 @@ fn wire_run_exercise_kcal_impl(
|
|
|
port_: MessagePort,
|
|
port_: MessagePort,
|
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, f64>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_kcal",
|
|
debug_name: "run_exercise_kcal",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -441,7 +423,7 @@ fn wire_run_exercise_exercise_kcal_impl(
|
|
|
port_: MessagePort,
|
|
port_: MessagePort,
|
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, f64>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_exercise_kcal",
|
|
debug_name: "run_exercise_exercise_kcal",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -457,7 +439,7 @@ fn wire_run_exercise_ck_impl(
|
|
|
port_: MessagePort,
|
|
port_: MessagePort,
|
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, f64>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_ck",
|
|
debug_name: "run_exercise_ck",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -473,7 +455,7 @@ fn wire_run_exercise_ei_impl(
|
|
|
port_: MessagePort,
|
|
port_: MessagePort,
|
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, f64>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_ei",
|
|
debug_name: "run_exercise_ei",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -489,7 +471,7 @@ fn wire_run_exercise_hr_percent_range_list_impl(
|
|
|
port_: MessagePort,
|
|
port_: MessagePort,
|
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
exercise: impl Wire2Api<RustOpaque<RwLock<Exercise>>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, Vec<mirror_CalHrPercentRange>>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "run_exercise_hr_percent_range_list",
|
|
debug_name: "run_exercise_hr_percent_range_list",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -497,12 +479,7 @@ fn wire_run_exercise_hr_percent_range_list_impl(
|
|
|
},
|
|
},
|
|
|
move || {
|
|
move || {
|
|
|
let api_exercise = exercise.wire2api();
|
|
let api_exercise = exercise.wire2api();
|
|
|
- move |task_callback| {
|
|
|
|
|
- Ok(run_exercise_hr_percent_range_list(api_exercise)
|
|
|
|
|
- .into_iter()
|
|
|
|
|
- .map(|v| mirror_CalHrPercentRange(v))
|
|
|
|
|
- .collect::<Vec<_>>())
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ move |task_callback| Ok(run_exercise_hr_percent_range_list(api_exercise))
|
|
|
},
|
|
},
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
@@ -511,7 +488,7 @@ fn wire_encrypt__method__Crypto_impl(
|
|
|
that: impl Wire2Api<Crypto> + UnwindSafe,
|
|
that: impl Wire2Api<Crypto> + UnwindSafe,
|
|
|
data: impl Wire2Api<Vec<u8>> + UnwindSafe,
|
|
data: impl Wire2Api<Vec<u8>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, mirror_EncryptData>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "encrypt__method__Crypto",
|
|
debug_name: "encrypt__method__Crypto",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -520,7 +497,7 @@ fn wire_encrypt__method__Crypto_impl(
|
|
|
move || {
|
|
move || {
|
|
|
let api_that = that.wire2api();
|
|
let api_that = that.wire2api();
|
|
|
let api_data = data.wire2api();
|
|
let api_data = data.wire2api();
|
|
|
- move |task_callback| Ok(mirror_EncryptData(Crypto::encrypt(&api_that, api_data)))
|
|
|
|
|
|
|
+ move |task_callback| Ok(Crypto::encrypt(&api_that, api_data))
|
|
|
},
|
|
},
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
@@ -530,7 +507,7 @@ fn wire_decrypt__method__Crypto_impl(
|
|
|
nonce: impl Wire2Api<Vec<u8>> + UnwindSafe,
|
|
nonce: impl Wire2Api<Vec<u8>> + UnwindSafe,
|
|
|
data: impl Wire2Api<Vec<u8>> + UnwindSafe,
|
|
data: impl Wire2Api<Vec<u8>> + UnwindSafe,
|
|
|
) {
|
|
) {
|
|
|
- FLUTTER_RUST_BRIDGE_HANDLER.wrap(
|
|
|
|
|
|
|
+ FLUTTER_RUST_BRIDGE_HANDLER.wrap::<_, _, _, Vec<u8>>(
|
|
|
WrapInfo {
|
|
WrapInfo {
|
|
|
debug_name: "decrypt__method__Crypto",
|
|
debug_name: "decrypt__method__Crypto",
|
|
|
port: Some(port_),
|
|
port: Some(port_),
|
|
@@ -547,22 +524,22 @@ fn wire_decrypt__method__Crypto_impl(
|
|
|
// Section: wrapper structs
|
|
// Section: wrapper structs
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
#[derive(Clone)]
|
|
|
-struct mirror_CalHrPercentRange(CalHrPercentRange);
|
|
|
|
|
|
|
+pub struct mirror_CalHrPercentRange(CalHrPercentRange);
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
#[derive(Clone)]
|
|
|
-struct mirror_ChartPoint(ChartPoint);
|
|
|
|
|
|
|
+pub struct mirror_ChartPoint(ChartPoint);
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
#[derive(Clone)]
|
|
|
-struct mirror_EncryptData(EncryptData);
|
|
|
|
|
|
|
+pub struct mirror_EncryptData(EncryptData);
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
#[derive(Clone)]
|
|
|
-struct mirror_Offset(Offset);
|
|
|
|
|
|
|
+pub struct mirror_Offset(Offset);
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
#[derive(Clone)]
|
|
|
-struct mirror_Position(Position);
|
|
|
|
|
|
|
+pub struct mirror_Position(Position);
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
#[derive(Clone)]
|
|
|
-struct mirror_Size(Size);
|
|
|
|
|
|
|
+pub struct mirror_Size(Size);
|
|
|
|
|
|
|
|
// Section: static checks
|
|
// Section: static checks
|
|
|
|
|
|
|
@@ -656,49 +633,99 @@ impl Wire2Api<u8> for u8 {
|
|
|
impl support::IntoDart for mirror_CalHrPercentRange {
|
|
impl support::IntoDart for mirror_CalHrPercentRange {
|
|
|
fn into_dart(self) -> support::DartAbi {
|
|
fn into_dart(self) -> support::DartAbi {
|
|
|
vec![
|
|
vec![
|
|
|
- self.0.start.into_dart(),
|
|
|
|
|
- self.0.end.into_dart(),
|
|
|
|
|
- self.0.percent.into_dart(),
|
|
|
|
|
|
|
+ self.0.start.into_into_dart().into_dart(),
|
|
|
|
|
+ self.0.end.into_into_dart().into_dart(),
|
|
|
|
|
+ self.0.percent.into_into_dart().into_dart(),
|
|
|
]
|
|
]
|
|
|
.into_dart()
|
|
.into_dart()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
impl support::IntoDartExceptPrimitive for mirror_CalHrPercentRange {}
|
|
impl support::IntoDartExceptPrimitive for mirror_CalHrPercentRange {}
|
|
|
|
|
+impl rust2dart::IntoIntoDart<mirror_CalHrPercentRange> for CalHrPercentRange {
|
|
|
|
|
+ fn into_into_dart(self) -> mirror_CalHrPercentRange {
|
|
|
|
|
+ mirror_CalHrPercentRange(self)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
impl support::IntoDart for mirror_ChartPoint {
|
|
impl support::IntoDart for mirror_ChartPoint {
|
|
|
fn into_dart(self) -> support::DartAbi {
|
|
fn into_dart(self) -> support::DartAbi {
|
|
|
- vec![self.0.x.into_dart(), self.0.y.into_dart()].into_dart()
|
|
|
|
|
|
|
+ vec![
|
|
|
|
|
+ self.0.x.into_into_dart().into_dart(),
|
|
|
|
|
+ self.0.y.into_into_dart().into_dart(),
|
|
|
|
|
+ ]
|
|
|
|
|
+ .into_dart()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
impl support::IntoDartExceptPrimitive for mirror_ChartPoint {}
|
|
impl support::IntoDartExceptPrimitive for mirror_ChartPoint {}
|
|
|
|
|
+impl rust2dart::IntoIntoDart<mirror_ChartPoint> for ChartPoint {
|
|
|
|
|
+ fn into_into_dart(self) -> mirror_ChartPoint {
|
|
|
|
|
+ mirror_ChartPoint(self)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
impl support::IntoDart for mirror_EncryptData {
|
|
impl support::IntoDart for mirror_EncryptData {
|
|
|
fn into_dart(self) -> support::DartAbi {
|
|
fn into_dart(self) -> support::DartAbi {
|
|
|
- vec![self.0.nonce.into_dart(), self.0.data.into_dart()].into_dart()
|
|
|
|
|
|
|
+ vec![
|
|
|
|
|
+ self.0.nonce.into_into_dart().into_dart(),
|
|
|
|
|
+ self.0.data.into_into_dart().into_dart(),
|
|
|
|
|
+ ]
|
|
|
|
|
+ .into_dart()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
impl support::IntoDartExceptPrimitive for mirror_EncryptData {}
|
|
impl support::IntoDartExceptPrimitive for mirror_EncryptData {}
|
|
|
|
|
+impl rust2dart::IntoIntoDart<mirror_EncryptData> for EncryptData {
|
|
|
|
|
+ fn into_into_dart(self) -> mirror_EncryptData {
|
|
|
|
|
+ mirror_EncryptData(self)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
impl support::IntoDart for mirror_Offset {
|
|
impl support::IntoDart for mirror_Offset {
|
|
|
fn into_dart(self) -> support::DartAbi {
|
|
fn into_dart(self) -> support::DartAbi {
|
|
|
- vec![self.0.x.into_dart(), self.0.y.into_dart()].into_dart()
|
|
|
|
|
|
|
+ vec![
|
|
|
|
|
+ self.0.x.into_into_dart().into_dart(),
|
|
|
|
|
+ self.0.y.into_into_dart().into_dart(),
|
|
|
|
|
+ ]
|
|
|
|
|
+ .into_dart()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
impl support::IntoDartExceptPrimitive for mirror_Offset {}
|
|
impl support::IntoDartExceptPrimitive for mirror_Offset {}
|
|
|
|
|
+impl rust2dart::IntoIntoDart<mirror_Offset> for Offset {
|
|
|
|
|
+ fn into_into_dart(self) -> mirror_Offset {
|
|
|
|
|
+ mirror_Offset(self)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
impl support::IntoDart for mirror_Position {
|
|
impl support::IntoDart for mirror_Position {
|
|
|
fn into_dart(self) -> support::DartAbi {
|
|
fn into_dart(self) -> support::DartAbi {
|
|
|
- vec![self.0.latitude.into_dart(), self.0.longitude.into_dart()].into_dart()
|
|
|
|
|
|
|
+ vec![
|
|
|
|
|
+ self.0.latitude.into_into_dart().into_dart(),
|
|
|
|
|
+ self.0.longitude.into_into_dart().into_dart(),
|
|
|
|
|
+ ]
|
|
|
|
|
+ .into_dart()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
impl support::IntoDartExceptPrimitive for mirror_Position {}
|
|
impl support::IntoDartExceptPrimitive for mirror_Position {}
|
|
|
|
|
+impl rust2dart::IntoIntoDart<mirror_Position> for Position {
|
|
|
|
|
+ fn into_into_dart(self) -> mirror_Position {
|
|
|
|
|
+ mirror_Position(self)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
impl support::IntoDart for mirror_Size {
|
|
impl support::IntoDart for mirror_Size {
|
|
|
fn into_dart(self) -> support::DartAbi {
|
|
fn into_dart(self) -> support::DartAbi {
|
|
|
- vec![self.0.width.into_dart(), self.0.height.into_dart()].into_dart()
|
|
|
|
|
|
|
+ vec![
|
|
|
|
|
+ self.0.width.into_into_dart().into_dart(),
|
|
|
|
|
+ self.0.height.into_into_dart().into_dart(),
|
|
|
|
|
+ ]
|
|
|
|
|
+ .into_dart()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
impl support::IntoDartExceptPrimitive for mirror_Size {}
|
|
impl support::IntoDartExceptPrimitive for mirror_Size {}
|
|
|
|
|
+impl rust2dart::IntoIntoDart<mirror_Size> for Size {
|
|
|
|
|
+ fn into_into_dart(self) -> mirror_Size {
|
|
|
|
|
+ mirror_Size(self)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
impl support::IntoDart for ZoneType {
|
|
impl support::IntoDart for ZoneType {
|
|
|
fn into_dart(self) -> support::DartAbi {
|
|
fn into_dart(self) -> support::DartAbi {
|
|
@@ -714,6 +741,12 @@ impl support::IntoDart for ZoneType {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
impl support::IntoDartExceptPrimitive for ZoneType {}
|
|
impl support::IntoDartExceptPrimitive for ZoneType {}
|
|
|
|
|
+impl rust2dart::IntoIntoDart<ZoneType> for ZoneType {
|
|
|
|
|
+ fn into_into_dart(self) -> Self {
|
|
|
|
|
+ self
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// Section: executor
|
|
// Section: executor
|
|
|
|
|
|
|
|
support::lazy_static! {
|
|
support::lazy_static! {
|