diff --git a/frb_codegen/src/library/codegen/generator/api_dart/spec_generator/info.rs b/frb_codegen/src/library/codegen/generator/api_dart/spec_generator/info.rs index 2001d20452..5ea82ed2fc 100644 --- a/frb_codegen/src/library/codegen/generator/api_dart/spec_generator/info.rs +++ b/frb_codegen/src/library/codegen/generator/api_dart/spec_generator/info.rs @@ -234,11 +234,10 @@ impl<'a> ApiDartGeneratorInfoTrait for UnencodableApiDartGenerator<'a> { fn rust_type_to_dart_type(rust: &str, brief_name: bool) -> String { lazy_static! { - static ref OPAQUE_FILTER: Regex =Regex::new(r"(\bdyn|'static|\bDartSafe|\bAssertUnwindSafe|\+ (Send|Sync|UnwindSafe|RefUnwindSafe))\b").unwrap(); + static ref OPAQUE_FILTER: Regex =Regex::new(r"((\bdyn|'static|\bDartSafe|\bAssertUnwindSafe|\+ (Send|Sync|UnwindSafe|RefUnwindSafe))\b)|([a-zA-Z0-9_]+::)").unwrap(); static ref OPAQUE_BRIEF_NAME_FILTER: Regex =Regex::new(r"(\bRwLock)\b").unwrap(); } - let rust = rust.split("::").last().unwrap(); let mut rust = OPAQUE_FILTER.replace_all(rust, "").to_string(); if brief_name { rust = OPAQUE_BRIEF_NAME_FILTER.replace_all(&rust, "").to_string(); @@ -250,3 +249,21 @@ fn rust_type_to_dart_type(rust: &str, brief_name: bool) -> String { fn char_not_alphanumeric(c: char) -> bool { !c.is_alphanumeric() } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + pub fn test_rust_type_to_dart_type() { + assert_eq!(&rust_type_to_dart_type("SomeType", true), "SomeType"); + assert_eq!( + &rust_type_to_dart_type( + "std::sync::RwLock", + true + ), + "AnotherOpaqueType" + ); + assert_eq!(&rust_type_to_dart_type("std::sync::RwLock<(crate::api::simple::MyOpaqueType,crate::api::simple::AnotherOpaqueType,)>", true), "MyOpaqueTypeAnotherOpaqueType"); + } +} diff --git a/frb_example/pure_dart/frb_generated.h b/frb_example/pure_dart/frb_generated.h index 431ac683f0..1e6e76d812 100644 --- a/frb_example/pure_dart/frb_generated.h +++ b/frb_example/pure_dart/frb_generated.h @@ -8524,6 +8524,16 @@ void frbgen_frb_example_pure_dart_wire_rust_auto_opaque_plus_sign_return_twin_ss int32_t rust_vec_len_, int32_t data_len_); +void frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_sse(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_sse(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + void frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_own_twin_sse(int64_t port_, uint8_t *ptr_, int32_t rust_vec_len_, @@ -8624,6 +8634,10 @@ WireSyncRust2DartDco frbgen_frb_example_pure_dart_wire_rust_auto_opaque_plus_sig WireSyncRust2DartDco frbgen_frb_example_pure_dart_wire_rust_auto_opaque_plus_sign_return_twin_sync(void); +WireSyncRust2DartDco frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync(void); + +WireSyncRust2DartDco frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_sync(void); + WireSyncRust2DartDco frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_own_twin_sync(int32_t initial); WireSyncRust2DartDco frbgen_frb_example_pure_dart_wire_rust_auto_opaque_struct_with_good_and_opaque_field_arg_borrow_twin_sync(const void *arg); @@ -8730,6 +8744,14 @@ WireSyncRust2DartSse frbgen_frb_example_pure_dart_wire_rust_auto_opaque_plus_sig int32_t rust_vec_len_, int32_t data_len_); +WireSyncRust2DartSse frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse(uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +WireSyncRust2DartSse frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_sync_sse(uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + WireSyncRust2DartSse frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_own_twin_sync_sse(uint8_t *ptr_, int32_t rust_vec_len_, int32_t data_len_); @@ -9475,6 +9497,10 @@ void frbgen_frb_example_pure_dart_wire_rust_auto_opaque_plus_sign_arg_twin_norma void frbgen_frb_example_pure_dart_wire_rust_auto_opaque_plus_sign_return_twin_normal(int64_t port_); +void frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_normal(int64_t port_); + +void frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_normal(int64_t port_); + void frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_own_twin_normal(int64_t port_, int32_t initial); @@ -9749,6 +9775,38 @@ void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_std void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse(const void *ptr); +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal(const void *ptr); + struct wire_cst_application_env *frbgen_frb_example_pure_dart_cst_new_box_application_env(void); int64_t *frbgen_frb_example_pure_dart_cst_new_box_autoadd_Chrono_Duration(int64_t value); @@ -11136,6 +11194,14 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSse); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSync); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_MutexHideData); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_RwLockHideData); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_box_dynDartDebugTwinNormal); @@ -11167,6 +11233,14 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSse); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSync); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_ConcatenateWithTwinNormal_concatenate_static_twin_normal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_ConcatenateWithTwinNormal_concatenate_twin_normal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_ConcatenateWithTwinNormal_handle_some_static_stream_sink_single_arg_twin_normal); @@ -12461,6 +12535,14 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_rust_auto_opaque_plus_sign_return_twin_sse); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_rust_auto_opaque_plus_sign_return_twin_sync); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_rust_auto_opaque_plus_sign_return_twin_sync_sse); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_sse); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_sse); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_sync_sse); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_own_twin_normal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_own_twin_sse); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_own_twin_sync); diff --git a/frb_example/pure_dart/lib/src/rust/api/pseudo_manual/rust_auto_opaque_twin_sse.dart b/frb_example/pure_dart/lib/src/rust/api/pseudo_manual/rust_auto_opaque_twin_sse.dart index e26e1c88b6..d6c33e09df 100644 --- a/frb_example/pure_dart/lib/src/rust/api/pseudo_manual/rust_auto_opaque_twin_sse.dart +++ b/frb_example/pure_dart/lib/src/rust/api/pseudo_manual/rust_auto_opaque_twin_sse.dart @@ -120,6 +120,14 @@ Future .rustAutoOpaqueStructWithGoodAndOpaqueFieldReturnOwnTwinSse( hint: hint); +Future + rustAutoOpaqueReturnOpaqueOneAndTwoTwinSse({dynamic hint}) => + RustLib.instance.api + .rustAutoOpaqueReturnOpaqueOneAndTwoTwinSse(hint: hint); + +Future rustAutoOpaqueReturnOpaqueTwoTwinSse({dynamic hint}) => + RustLib.instance.api.rustAutoOpaqueReturnOpaqueTwoTwinSse(hint: hint); + // Rust type: flutter_rust_bridge::RustOpaque String + Send + Sync>>> @sealed class BoxFnStringString extends RustOpaque { @@ -271,3 +279,41 @@ class StructWithGoodAndOpaqueFieldTwinSse extends RustOpaque { .rust_arc_decrement_strong_count_StructWithGoodAndOpaqueFieldTwinSsePtr, ); } + +// Rust type: flutter_rust_bridge::RustOpaque> +@sealed +class OpaqueOneTwinSseOpaqueTwoTwinSse extends RustOpaque { + OpaqueOneTwinSseOpaqueTwoTwinSse.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + OpaqueOneTwinSseOpaqueTwoTwinSse.sseDecode(int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_OpaqueOneTwinSseOpaqueTwoTwinSse, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_OpaqueOneTwinSseOpaqueTwoTwinSse, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_OpaqueOneTwinSseOpaqueTwoTwinSsePtr, + ); +} + +// Rust type: flutter_rust_bridge::RustOpaque> +@sealed +class OpaqueTwoTwinSse extends RustOpaque { + OpaqueTwoTwinSse.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + OpaqueTwoTwinSse.sseDecode(int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_OpaqueTwoTwinSse, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_OpaqueTwoTwinSse, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_OpaqueTwoTwinSsePtr, + ); +} diff --git a/frb_example/pure_dart/lib/src/rust/api/pseudo_manual/rust_auto_opaque_twin_sync.dart b/frb_example/pure_dart/lib/src/rust/api/pseudo_manual/rust_auto_opaque_twin_sync.dart index 86cf2f537b..238f4a2a3a 100644 --- a/frb_example/pure_dart/lib/src/rust/api/pseudo_manual/rust_auto_opaque_twin_sync.dart +++ b/frb_example/pure_dart/lib/src/rust/api/pseudo_manual/rust_auto_opaque_twin_sync.dart @@ -123,6 +123,14 @@ StructWithGoodAndOpaqueFieldTwinSync .rustAutoOpaqueStructWithGoodAndOpaqueFieldReturnOwnTwinSync( hint: hint); +OpaqueOneTwinSyncOpaqueTwoTwinSync rustAutoOpaqueReturnOpaqueOneAndTwoTwinSync( + {dynamic hint}) => + RustLib.instance.api + .rustAutoOpaqueReturnOpaqueOneAndTwoTwinSync(hint: hint); + +OpaqueTwoTwinSync rustAutoOpaqueReturnOpaqueTwoTwinSync({dynamic hint}) => + RustLib.instance.api.rustAutoOpaqueReturnOpaqueTwoTwinSync(hint: hint); + // Rust type: flutter_rust_bridge::RustOpaque>> @sealed class BoxHelloTraitTwinSync extends RustOpaque { @@ -255,3 +263,42 @@ class StructWithGoodAndOpaqueFieldTwinSync extends RustOpaque { .rust_arc_decrement_strong_count_StructWithGoodAndOpaqueFieldTwinSyncPtr, ); } + +// Rust type: flutter_rust_bridge::RustOpaque> +@sealed +class OpaqueOneTwinSyncOpaqueTwoTwinSync extends RustOpaque { + OpaqueOneTwinSyncOpaqueTwoTwinSync.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + OpaqueOneTwinSyncOpaqueTwoTwinSync.sseDecode( + int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_OpaqueOneTwinSyncOpaqueTwoTwinSync, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_OpaqueOneTwinSyncOpaqueTwoTwinSync, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_OpaqueOneTwinSyncOpaqueTwoTwinSyncPtr, + ); +} + +// Rust type: flutter_rust_bridge::RustOpaque> +@sealed +class OpaqueTwoTwinSync extends RustOpaque { + OpaqueTwoTwinSync.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + OpaqueTwoTwinSync.sseDecode(int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_OpaqueTwoTwinSync, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_OpaqueTwoTwinSync, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_OpaqueTwoTwinSyncPtr, + ); +} diff --git a/frb_example/pure_dart/lib/src/rust/api/pseudo_manual/rust_auto_opaque_twin_sync_sse.dart b/frb_example/pure_dart/lib/src/rust/api/pseudo_manual/rust_auto_opaque_twin_sync_sse.dart index 7ab89e30d8..fbb277e130 100644 --- a/frb_example/pure_dart/lib/src/rust/api/pseudo_manual/rust_auto_opaque_twin_sync_sse.dart +++ b/frb_example/pure_dart/lib/src/rust/api/pseudo_manual/rust_auto_opaque_twin_sync_sse.dart @@ -126,6 +126,14 @@ StructWithGoodAndOpaqueFieldTwinSyncSse .rustAutoOpaqueStructWithGoodAndOpaqueFieldReturnOwnTwinSyncSse( hint: hint); +OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse + rustAutoOpaqueReturnOpaqueOneAndTwoTwinSyncSse({dynamic hint}) => + RustLib.instance.api + .rustAutoOpaqueReturnOpaqueOneAndTwoTwinSyncSse(hint: hint); + +OpaqueTwoTwinSyncSse rustAutoOpaqueReturnOpaqueTwoTwinSyncSse({dynamic hint}) => + RustLib.instance.api.rustAutoOpaqueReturnOpaqueTwoTwinSyncSse(hint: hint); + // Rust type: flutter_rust_bridge::RustOpaque>> @sealed class BoxHelloTraitTwinSyncSse extends RustOpaque { @@ -264,3 +272,42 @@ class StructWithGoodAndOpaqueFieldTwinSyncSse extends RustOpaque { .rust_arc_decrement_strong_count_StructWithGoodAndOpaqueFieldTwinSyncSsePtr, ); } + +// Rust type: flutter_rust_bridge::RustOpaque> +@sealed +class OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse extends RustOpaque { + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse.sseDecode( + int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSsePtr, + ); +} + +// Rust type: flutter_rust_bridge::RustOpaque> +@sealed +class OpaqueTwoTwinSyncSse extends RustOpaque { + OpaqueTwoTwinSyncSse.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + OpaqueTwoTwinSyncSse.sseDecode(int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib + .instance.api.rust_arc_increment_strong_count_OpaqueTwoTwinSyncSse, + rustArcDecrementStrongCount: RustLib + .instance.api.rust_arc_decrement_strong_count_OpaqueTwoTwinSyncSse, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_OpaqueTwoTwinSyncSsePtr, + ); +} diff --git a/frb_example/pure_dart/lib/src/rust/api/rust_auto_opaque.dart b/frb_example/pure_dart/lib/src/rust/api/rust_auto_opaque.dart index 49f33451c5..60fa303a1f 100644 --- a/frb_example/pure_dart/lib/src/rust/api/rust_auto_opaque.dart +++ b/frb_example/pure_dart/lib/src/rust/api/rust_auto_opaque.dart @@ -128,6 +128,15 @@ Future .rustAutoOpaqueStructWithGoodAndOpaqueFieldReturnOwnTwinNormal( hint: hint); +Future + rustAutoOpaqueReturnOpaqueOneAndTwoTwinNormal({dynamic hint}) => + RustLib.instance.api + .rustAutoOpaqueReturnOpaqueOneAndTwoTwinNormal(hint: hint); + +Future rustAutoOpaqueReturnOpaqueTwoTwinNormal( + {dynamic hint}) => + RustLib.instance.api.rustAutoOpaqueReturnOpaqueTwoTwinNormal(hint: hint); + // Rust type: flutter_rust_bridge::RustOpaque>> @sealed class BoxHelloTraitTwinNormal extends RustOpaque { @@ -267,3 +276,42 @@ class StructWithGoodAndOpaqueFieldTwinNormal extends RustOpaque { .rust_arc_decrement_strong_count_StructWithGoodAndOpaqueFieldTwinNormalPtr, ); } + +// Rust type: flutter_rust_bridge::RustOpaque> +@sealed +class OpaqueOneTwinNormalOpaqueTwoTwinNormal extends RustOpaque { + OpaqueOneTwinNormalOpaqueTwoTwinNormal.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + OpaqueOneTwinNormalOpaqueTwoTwinNormal.sseDecode( + int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_OpaqueOneTwinNormalOpaqueTwoTwinNormal, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_OpaqueOneTwinNormalOpaqueTwoTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_OpaqueOneTwinNormalOpaqueTwoTwinNormalPtr, + ); +} + +// Rust type: flutter_rust_bridge::RustOpaque> +@sealed +class OpaqueTwoTwinNormal extends RustOpaque { + OpaqueTwoTwinNormal.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + OpaqueTwoTwinNormal.sseDecode(int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib + .instance.api.rust_arc_increment_strong_count_OpaqueTwoTwinNormal, + rustArcDecrementStrongCount: RustLib + .instance.api.rust_arc_decrement_strong_count_OpaqueTwoTwinNormal, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_OpaqueTwoTwinNormalPtr, + ); +} diff --git a/frb_example/pure_dart/lib/src/rust/frb_generated.dart b/frb_example/pure_dart/lib/src/rust/frb_generated.dart index 533f974ee5..85f9d7845d 100644 --- a/frb_example/pure_dart/lib/src/rust/frb_generated.dart +++ b/frb_example/pure_dart/lib/src/rust/frb_generated.dart @@ -3720,6 +3720,11 @@ abstract class RustLibApi extends BaseApi { Future rustAutoOpaquePlusSignReturnTwinSse({dynamic hint}); + Future + rustAutoOpaqueReturnOpaqueOneAndTwoTwinSse({dynamic hint}); + + Future rustAutoOpaqueReturnOpaqueTwoTwinSse({dynamic hint}); + Future rustAutoOpaqueReturnOwnTwinSse( {required int initial, dynamic hint}); @@ -3822,6 +3827,11 @@ abstract class RustLibApi extends BaseApi { BoxMyTraitTwinSync rustAutoOpaquePlusSignReturnTwinSync({dynamic hint}); + OpaqueOneTwinSyncOpaqueTwoTwinSync + rustAutoOpaqueReturnOpaqueOneAndTwoTwinSync({dynamic hint}); + + OpaqueTwoTwinSync rustAutoOpaqueReturnOpaqueTwoTwinSync({dynamic hint}); + NonCloneSimpleTwinSync rustAutoOpaqueReturnOwnTwinSync( {required int initial, dynamic hint}); @@ -3930,6 +3940,11 @@ abstract class RustLibApi extends BaseApi { BoxMyTraitTwinSyncSse rustAutoOpaquePlusSignReturnTwinSyncSse({dynamic hint}); + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse + rustAutoOpaqueReturnOpaqueOneAndTwoTwinSyncSse({dynamic hint}); + + OpaqueTwoTwinSyncSse rustAutoOpaqueReturnOpaqueTwoTwinSyncSse({dynamic hint}); + NonCloneSimpleTwinSyncSse rustAutoOpaqueReturnOwnTwinSyncSse( {required int initial, dynamic hint}); @@ -4482,6 +4497,12 @@ abstract class RustLibApi extends BaseApi { Future rustAutoOpaquePlusSignReturnTwinNormal( {dynamic hint}); + Future + rustAutoOpaqueReturnOpaqueOneAndTwoTwinNormal({dynamic hint}); + + Future rustAutoOpaqueReturnOpaqueTwoTwinNormal( + {dynamic hint}); + Future rustAutoOpaqueReturnOwnTwinNormal( {required int initial, dynamic hint}); @@ -4912,6 +4933,78 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_StructWithGoodAndOpaqueFieldTwinSyncSsePtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueOneTwinSseOpaqueTwoTwinSse; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueOneTwinSseOpaqueTwoTwinSse; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueOneTwinSseOpaqueTwoTwinSsePtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueTwoTwinSse; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueTwoTwinSse; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueTwoTwinSsePtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueOneTwinSyncOpaqueTwoTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueOneTwinSyncOpaqueTwoTwinSync; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueOneTwinSyncOpaqueTwoTwinSyncPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueTwoTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueTwoTwinSync; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueTwoTwinSyncPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSsePtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueTwoTwinSyncSse; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueTwoTwinSyncSse; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueTwoTwinSyncSsePtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueOneTwinNormalOpaqueTwoTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueOneTwinNormalOpaqueTwoTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueOneTwinNormalOpaqueTwoTwinNormalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueTwoTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueTwoTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueTwoTwinNormalPtr; } class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @@ -37388,6 +37481,64 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: [], ); + @override + Future + rustAutoOpaqueReturnOpaqueOneAndTwoTwinSse({dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + + final raw_ = serializer.intoRaw(); + return wire.wire_rust_auto_opaque_return_opaque_one_and_two_twin_sse( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse, + decodeErrorData: null, + ), + constMeta: kRustAutoOpaqueReturnOpaqueOneAndTwoTwinSseConstMeta, + argValues: [], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRustAutoOpaqueReturnOpaqueOneAndTwoTwinSseConstMeta => + const TaskConstMeta( + debugName: "rust_auto_opaque_return_opaque_one_and_two_twin_sse", + argNames: [], + ); + + @override + Future rustAutoOpaqueReturnOpaqueTwoTwinSse( + {dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + + final raw_ = serializer.intoRaw(); + return wire.wire_rust_auto_opaque_return_opaque_two_twin_sse( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse, + decodeErrorData: null, + ), + constMeta: kRustAutoOpaqueReturnOpaqueTwoTwinSseConstMeta, + argValues: [], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRustAutoOpaqueReturnOpaqueTwoTwinSseConstMeta => + const TaskConstMeta( + debugName: "rust_auto_opaque_return_opaque_two_twin_sse", + argNames: [], + ); + @override Future rustAutoOpaqueReturnOwnTwinSse( {required int initial, dynamic hint}) { @@ -38312,6 +38463,55 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: [], ); + @override + OpaqueOneTwinSyncOpaqueTwoTwinSync + rustAutoOpaqueReturnOpaqueOneAndTwoTwinSync({dynamic hint}) { + return handler.executeSync(SyncTask( + callFfi: () { + return wire.wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync(); + }, + codec: DcoCodec( + decodeSuccessData: + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync, + decodeErrorData: null, + ), + constMeta: kRustAutoOpaqueReturnOpaqueOneAndTwoTwinSyncConstMeta, + argValues: [], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRustAutoOpaqueReturnOpaqueOneAndTwoTwinSyncConstMeta => + const TaskConstMeta( + debugName: "rust_auto_opaque_return_opaque_one_and_two_twin_sync", + argNames: [], + ); + + @override + OpaqueTwoTwinSync rustAutoOpaqueReturnOpaqueTwoTwinSync({dynamic hint}) { + return handler.executeSync(SyncTask( + callFfi: () { + return wire.wire_rust_auto_opaque_return_opaque_two_twin_sync(); + }, + codec: DcoCodec( + decodeSuccessData: + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync, + decodeErrorData: null, + ), + constMeta: kRustAutoOpaqueReturnOpaqueTwoTwinSyncConstMeta, + argValues: [], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRustAutoOpaqueReturnOpaqueTwoTwinSyncConstMeta => + const TaskConstMeta( + debugName: "rust_auto_opaque_return_opaque_two_twin_sync", + argNames: [], + ); + @override NonCloneSimpleTwinSync rustAutoOpaqueReturnOwnTwinSync( {required int initial, dynamic hint}) { @@ -39274,6 +39474,65 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: [], ); + @override + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse + rustAutoOpaqueReturnOpaqueOneAndTwoTwinSyncSse({dynamic hint}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + + final raw_ = serializer.intoRaw(); + return wire + .wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse( + raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse, + decodeErrorData: null, + ), + constMeta: kRustAutoOpaqueReturnOpaqueOneAndTwoTwinSyncSseConstMeta, + argValues: [], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRustAutoOpaqueReturnOpaqueOneAndTwoTwinSyncSseConstMeta => + const TaskConstMeta( + debugName: "rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse", + argNames: [], + ); + + @override + OpaqueTwoTwinSyncSse rustAutoOpaqueReturnOpaqueTwoTwinSyncSse( + {dynamic hint}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + + final raw_ = serializer.intoRaw(); + return wire.wire_rust_auto_opaque_return_opaque_two_twin_sync_sse( + raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse, + decodeErrorData: null, + ), + constMeta: kRustAutoOpaqueReturnOpaqueTwoTwinSyncSseConstMeta, + argValues: [], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRustAutoOpaqueReturnOpaqueTwoTwinSyncSseConstMeta => + const TaskConstMeta( + debugName: "rust_auto_opaque_return_opaque_two_twin_sync_sse", + argNames: [], + ); + @override NonCloneSimpleTwinSyncSse rustAutoOpaqueReturnOwnTwinSyncSse( {required int initial, dynamic hint}) { @@ -44654,6 +44913,57 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: [], ); + @override + Future + rustAutoOpaqueReturnOpaqueOneAndTwoTwinNormal({dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + return wire + .wire_rust_auto_opaque_return_opaque_one_and_two_twin_normal(port_); + }, + codec: DcoCodec( + decodeSuccessData: + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal, + decodeErrorData: null, + ), + constMeta: kRustAutoOpaqueReturnOpaqueOneAndTwoTwinNormalConstMeta, + argValues: [], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRustAutoOpaqueReturnOpaqueOneAndTwoTwinNormalConstMeta => + const TaskConstMeta( + debugName: "rust_auto_opaque_return_opaque_one_and_two_twin_normal", + argNames: [], + ); + + @override + Future rustAutoOpaqueReturnOpaqueTwoTwinNormal( + {dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + return wire.wire_rust_auto_opaque_return_opaque_two_twin_normal(port_); + }, + codec: DcoCodec( + decodeSuccessData: + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal, + decodeErrorData: null, + ), + constMeta: kRustAutoOpaqueReturnOpaqueTwoTwinNormalConstMeta, + argValues: [], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRustAutoOpaqueReturnOpaqueTwoTwinNormalConstMeta => + const TaskConstMeta( + debugName: "rust_auto_opaque_return_opaque_two_twin_normal", + argNames: [], + ); + @override Future rustAutoOpaqueReturnOwnTwinNormal( {required int initial, dynamic hint}) { @@ -46525,6 +46835,70 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_StructWithGoodAndOpaqueFieldTwinSyncSse => wire.rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueOneTwinSseOpaqueTwoTwinSse => wire + .rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueOneTwinSseOpaqueTwoTwinSse => wire + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueTwoTwinSse => wire + .rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueTwoTwinSse => wire + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueOneTwinSyncOpaqueTwoTwinSync => + wire.rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueOneTwinSyncOpaqueTwoTwinSync => + wire.rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueTwoTwinSync => wire + .rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueTwoTwinSync => wire + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse => + wire.rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse => + wire.rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueTwoTwinSyncSse => wire + .rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueTwoTwinSyncSse => wire + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueOneTwinNormalOpaqueTwoTwinNormal => + wire.rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueOneTwinNormalOpaqueTwoTwinNormal => + wire.rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_OpaqueTwoTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_OpaqueTwoTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal; + @protected AnyhowException dco_decode_AnyhowException(dynamic raw) { return AnyhowException(raw as String); @@ -46651,6 +47025,64 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + OpaqueOneTwinSseOpaqueTwoTwinSse + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic raw) { + return OpaqueOneTwinSseOpaqueTwoTwinSse.dcoDecode(raw as List); + } + + @protected + OpaqueTwoTwinSse + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic raw) { + return OpaqueTwoTwinSse.dcoDecode(raw as List); + } + + @protected + OpaqueOneTwinSyncOpaqueTwoTwinSync + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic raw) { + return OpaqueOneTwinSyncOpaqueTwoTwinSync.dcoDecode(raw as List); + } + + @protected + OpaqueTwoTwinSync + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic raw) { + return OpaqueTwoTwinSync.dcoDecode(raw as List); + } + + @protected + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic raw) { + return OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse.dcoDecode( + raw as List); + } + + @protected + OpaqueTwoTwinSyncSse + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic raw) { + return OpaqueTwoTwinSyncSse.dcoDecode(raw as List); + } + + @protected + OpaqueOneTwinNormalOpaqueTwoTwinNormal + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic raw) { + return OpaqueOneTwinNormalOpaqueTwoTwinNormal.dcoDecode( + raw as List); + } + + @protected + OpaqueTwoTwinNormal + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic raw) { + return OpaqueTwoTwinNormal.dcoDecode(raw as List); + } + @protected BoxHelloTraitTwinNormal dco_decode_Auto_RefMut_RustOpaque_stdsyncRwLockBoxdynHelloTraitTwinNormal( @@ -47147,6 +47579,64 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + OpaqueOneTwinSseOpaqueTwoTwinSse + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic raw) { + return OpaqueOneTwinSseOpaqueTwoTwinSse.dcoDecode(raw as List); + } + + @protected + OpaqueTwoTwinSse + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic raw) { + return OpaqueTwoTwinSse.dcoDecode(raw as List); + } + + @protected + OpaqueOneTwinSyncOpaqueTwoTwinSync + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic raw) { + return OpaqueOneTwinSyncOpaqueTwoTwinSync.dcoDecode(raw as List); + } + + @protected + OpaqueTwoTwinSync + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic raw) { + return OpaqueTwoTwinSync.dcoDecode(raw as List); + } + + @protected + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic raw) { + return OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse.dcoDecode( + raw as List); + } + + @protected + OpaqueTwoTwinSyncSse + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic raw) { + return OpaqueTwoTwinSyncSse.dcoDecode(raw as List); + } + + @protected + OpaqueOneTwinNormalOpaqueTwoTwinNormal + dco_decode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic raw) { + return OpaqueOneTwinNormalOpaqueTwoTwinNormal.dcoDecode( + raw as List); + } + + @protected + OpaqueTwoTwinNormal + dco_decode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic raw) { + return OpaqueTwoTwinNormal.dcoDecode(raw as List); + } + @protected String dco_decode_String(dynamic raw) { return raw as String; @@ -56453,6 +56943,70 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + OpaqueOneTwinSseOpaqueTwoTwinSse + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + SseDeserializer deserializer) { + return OpaqueOneTwinSseOpaqueTwoTwinSse.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + OpaqueTwoTwinSse + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + SseDeserializer deserializer) { + return OpaqueTwoTwinSse.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + OpaqueOneTwinSyncOpaqueTwoTwinSync + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + SseDeserializer deserializer) { + return OpaqueOneTwinSyncOpaqueTwoTwinSync.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + OpaqueTwoTwinSync + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + SseDeserializer deserializer) { + return OpaqueTwoTwinSync.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + SseDeserializer deserializer) { + return OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + OpaqueTwoTwinSyncSse + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + SseDeserializer deserializer) { + return OpaqueTwoTwinSyncSse.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + OpaqueOneTwinNormalOpaqueTwoTwinNormal + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + SseDeserializer deserializer) { + return OpaqueOneTwinNormalOpaqueTwoTwinNormal.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + OpaqueTwoTwinNormal + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + SseDeserializer deserializer) { + return OpaqueTwoTwinNormal.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected BoxHelloTraitTwinNormal sse_decode_Auto_RefMut_RustOpaque_stdsyncRwLockBoxdynHelloTraitTwinNormal( @@ -56927,6 +57481,70 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + OpaqueOneTwinSseOpaqueTwoTwinSse + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + SseDeserializer deserializer) { + return OpaqueOneTwinSseOpaqueTwoTwinSse.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + OpaqueTwoTwinSse + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + SseDeserializer deserializer) { + return OpaqueTwoTwinSse.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + OpaqueOneTwinSyncOpaqueTwoTwinSync + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + SseDeserializer deserializer) { + return OpaqueOneTwinSyncOpaqueTwoTwinSync.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + OpaqueTwoTwinSync + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + SseDeserializer deserializer) { + return OpaqueTwoTwinSync.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + SseDeserializer deserializer) { + return OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + OpaqueTwoTwinSyncSse + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + SseDeserializer deserializer) { + return OpaqueTwoTwinSyncSse.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + OpaqueOneTwinNormalOpaqueTwoTwinNormal + sse_decode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + SseDeserializer deserializer) { + return OpaqueOneTwinNormalOpaqueTwoTwinNormal.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + OpaqueTwoTwinNormal + sse_decode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + SseDeserializer deserializer) { + return OpaqueTwoTwinNormal.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected String sse_decode_String(SseDeserializer deserializer) { var inner = sse_decode_list_prim_u_8(deserializer); @@ -66442,6 +67060,70 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return raw.cstEncode(move: true); } + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueOneTwinSseOpaqueTwoTwinSse raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(move: true); + } + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueTwoTwinSse raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(move: true); + } + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueOneTwinSyncOpaqueTwoTwinSync raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(move: true); + } + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueTwoTwinSync raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(move: true); + } + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(move: true); + } + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueTwoTwinSyncSse raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(move: true); + } + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueOneTwinNormalOpaqueTwoTwinNormal raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(move: true); + } + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueTwoTwinNormal raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(move: true); + } + @protected PlatformPointer cst_encode_Auto_RefMut_RustOpaque_stdsyncRwLockBoxdynHelloTraitTwinNormal( @@ -66978,6 +67660,70 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return raw.cstEncode(); } + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueOneTwinSseOpaqueTwoTwinSse raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueTwoTwinSse raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueOneTwinSyncOpaqueTwoTwinSync raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueTwoTwinSync raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueTwoTwinSyncSse raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueOneTwinNormalOpaqueTwoTwinNormal raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueTwoTwinNormal raw) { + // ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + @protected int cst_encode_application_mode(ApplicationMode raw) { return cst_encode_i_32(raw.index); @@ -67230,6 +67976,64 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_usize(self.sseEncode(move: true), serializer); } + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueOneTwinSseOpaqueTwoTwinSse self, SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: true), serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueTwoTwinSse self, SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: true), serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueOneTwinSyncOpaqueTwoTwinSync self, SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: true), serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueTwoTwinSync self, SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: true), serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse self, + SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: true), serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueTwoTwinSyncSse self, SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: true), serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueOneTwinNormalOpaqueTwoTwinNormal self, + SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: true), serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueTwoTwinNormal self, SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: true), serializer); + } + @protected void sse_encode_Auto_RefMut_RustOpaque_stdsyncRwLockBoxdynHelloTraitTwinNormal( @@ -67763,6 +68567,64 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_usize(self.sseEncode(move: null), serializer); } + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueOneTwinSseOpaqueTwoTwinSse self, SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueTwoTwinSse self, SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueOneTwinSyncOpaqueTwoTwinSync self, SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueTwoTwinSync self, SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse self, + SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueTwoTwinSyncSse self, SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueOneTwinNormalOpaqueTwoTwinNormal self, + SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueTwoTwinNormal self, SseSerializer serializer) { + sse_encode_usize(self.sseEncode(move: null), serializer); + } + @protected void sse_encode_String(String self, SseSerializer serializer) { sse_encode_list_prim_u_8(utf8.encoder.convert(self), serializer); diff --git a/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart b/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart index eb518f8987..9653af1572 100644 --- a/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart +++ b/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart @@ -337,6 +337,38 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_StructWithGoodAndOpaqueFieldTwinSyncSsePtr => wire._rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSsePtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueOneTwinSseOpaqueTwoTwinSsePtr => + wire._rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSsePtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueTwoTwinSsePtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSsePtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueOneTwinSyncOpaqueTwoTwinSyncPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSyncPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueTwoTwinSyncPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSyncPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSsePtr => + wire._rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSsePtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueTwoTwinSyncSsePtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSsePtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueOneTwinNormalOpaqueTwoTwinNormalPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormalPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueTwoTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormalPtr; + @protected AnyhowException dco_decode_AnyhowException(dynamic raw); @@ -425,6 +457,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse( dynamic raw); + @protected + OpaqueOneTwinSseOpaqueTwoTwinSse + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic raw); + + @protected + OpaqueTwoTwinSse + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic raw); + + @protected + OpaqueOneTwinSyncOpaqueTwoTwinSync + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic raw); + + @protected + OpaqueTwoTwinSync + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic raw); + + @protected + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic raw); + + @protected + OpaqueTwoTwinSyncSse + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic raw); + + @protected + OpaqueOneTwinNormalOpaqueTwoTwinNormal + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic raw); + + @protected + OpaqueTwoTwinNormal + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic raw); + @protected BoxHelloTraitTwinNormal dco_decode_Auto_RefMut_RustOpaque_stdsyncRwLockBoxdynHelloTraitTwinNormal( @@ -759,6 +831,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse( dynamic raw); + @protected + OpaqueOneTwinSseOpaqueTwoTwinSse + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic raw); + + @protected + OpaqueTwoTwinSse + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic raw); + + @protected + OpaqueOneTwinSyncOpaqueTwoTwinSync + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic raw); + + @protected + OpaqueTwoTwinSync + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic raw); + + @protected + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic raw); + + @protected + OpaqueTwoTwinSyncSse + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic raw); + + @protected + OpaqueOneTwinNormalOpaqueTwoTwinNormal + dco_decode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic raw); + + @protected + OpaqueTwoTwinNormal + dco_decode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic raw); + @protected String dco_decode_String(dynamic raw); @@ -4448,6 +4560,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse( SseDeserializer deserializer); + @protected + OpaqueOneTwinSseOpaqueTwoTwinSse + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinSse + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + SseDeserializer deserializer); + + @protected + OpaqueOneTwinSyncOpaqueTwoTwinSync + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinSync + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + SseDeserializer deserializer); + + @protected + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinSyncSse + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + SseDeserializer deserializer); + + @protected + OpaqueOneTwinNormalOpaqueTwoTwinNormal + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinNormal + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + SseDeserializer deserializer); + @protected BoxHelloTraitTwinNormal sse_decode_Auto_RefMut_RustOpaque_stdsyncRwLockBoxdynHelloTraitTwinNormal( @@ -4733,6 +4885,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse( SseDeserializer deserializer); + @protected + OpaqueOneTwinSseOpaqueTwoTwinSse + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinSse + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + SseDeserializer deserializer); + + @protected + OpaqueOneTwinSyncOpaqueTwoTwinSync + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinSync + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + SseDeserializer deserializer); + + @protected + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinSyncSse + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + SseDeserializer deserializer); + + @protected + OpaqueOneTwinNormalOpaqueTwoTwinNormal + sse_decode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinNormal + sse_decode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + SseDeserializer deserializer); + @protected String sse_decode_String(SseDeserializer deserializer); @@ -20896,6 +21088,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse( StructWithGoodAndOpaqueFieldTwinSyncSse raw); + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueOneTwinSseOpaqueTwoTwinSse raw); + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueTwoTwinSse raw); + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueOneTwinSyncOpaqueTwoTwinSync raw); + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueTwoTwinSync raw); + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse raw); + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueTwoTwinSyncSse raw); + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueOneTwinNormalOpaqueTwoTwinNormal raw); + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueTwoTwinNormal raw); + @protected PlatformPointer cst_encode_Auto_RefMut_RustOpaque_stdsyncRwLockBoxdynHelloTraitTwinNormal( @@ -21220,6 +21452,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { cst_encode_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse( StructWithGoodAndOpaqueFieldTwinSyncSse raw); + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueOneTwinSseOpaqueTwoTwinSse raw); + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueTwoTwinSse raw); + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueOneTwinSyncOpaqueTwoTwinSync raw); + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueTwoTwinSync raw); + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse raw); + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueTwoTwinSyncSse raw); + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueOneTwinNormalOpaqueTwoTwinNormal raw); + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueTwoTwinNormal raw); + @protected int cst_encode_application_mode(ApplicationMode raw); @@ -21383,6 +21655,48 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { StructWithGoodAndOpaqueFieldTwinSyncSse self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueOneTwinSseOpaqueTwoTwinSse self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueTwoTwinSse self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueOneTwinSyncOpaqueTwoTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueTwoTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse self, + SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueTwoTwinSyncSse self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueOneTwinNormalOpaqueTwoTwinNormal self, + SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueTwoTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_RefMut_RustOpaque_stdsyncRwLockBoxdynHelloTraitTwinNormal( @@ -21727,6 +22041,48 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { StructWithGoodAndOpaqueFieldTwinSyncSse self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueOneTwinSseOpaqueTwoTwinSse self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueTwoTwinSse self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueOneTwinSyncOpaqueTwoTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueTwoTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse self, + SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueTwoTwinSyncSse self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueOneTwinNormalOpaqueTwoTwinNormal self, + SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueTwoTwinNormal self, SseSerializer serializer); + @protected void sse_encode_String(String self, SseSerializer serializer); @@ -50059,6 +50415,52 @@ class RustLibWire implements BaseWire { _wire_rust_auto_opaque_plus_sign_return_twin_ssePtr .asFunction, int, int)>(); + void wire_rust_auto_opaque_return_opaque_one_and_two_twin_sse( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire_rust_auto_opaque_return_opaque_one_and_two_twin_sse( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire_rust_auto_opaque_return_opaque_one_and_two_twin_ssePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer, ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_sse'); + late final _wire_rust_auto_opaque_return_opaque_one_and_two_twin_sse = + _wire_rust_auto_opaque_return_opaque_one_and_two_twin_ssePtr + .asFunction, int, int)>(); + + void wire_rust_auto_opaque_return_opaque_two_twin_sse( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire_rust_auto_opaque_return_opaque_two_twin_sse( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire_rust_auto_opaque_return_opaque_two_twin_ssePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer, ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_sse'); + late final _wire_rust_auto_opaque_return_opaque_two_twin_sse = + _wire_rust_auto_opaque_return_opaque_two_twin_ssePtr + .asFunction, int, int)>(); + void wire_rust_auto_opaque_return_own_twin_sse( int port_, ffi.Pointer ptr_, @@ -50640,6 +51042,29 @@ class RustLibWire implements BaseWire { _wire_rust_auto_opaque_plus_sign_return_twin_syncPtr .asFunction(); + WireSyncRust2DartDco + wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync() { + return _wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync(); + } + + late final _wire_rust_auto_opaque_return_opaque_one_and_two_twin_syncPtr = + _lookup>( + 'frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync'); + late final _wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync = + _wire_rust_auto_opaque_return_opaque_one_and_two_twin_syncPtr + .asFunction(); + + WireSyncRust2DartDco wire_rust_auto_opaque_return_opaque_two_twin_sync() { + return _wire_rust_auto_opaque_return_opaque_two_twin_sync(); + } + + late final _wire_rust_auto_opaque_return_opaque_two_twin_syncPtr = _lookup< + ffi.NativeFunction>( + 'frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_sync'); + late final _wire_rust_auto_opaque_return_opaque_two_twin_sync = + _wire_rust_auto_opaque_return_opaque_two_twin_syncPtr + .asFunction(); + WireSyncRust2DartDco wire_rust_auto_opaque_return_own_twin_sync( int initial, ) { @@ -51292,6 +51717,52 @@ class RustLibWire implements BaseWire { _wire_rust_auto_opaque_plus_sign_return_twin_sync_ssePtr.asFunction< WireSyncRust2DartSse Function(ffi.Pointer, int, int)>(); + WireSyncRust2DartSse + wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse( + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse( + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_ssePtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse'); + late final _wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse = + _wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_ssePtr + .asFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, int, int)>(); + + WireSyncRust2DartSse wire_rust_auto_opaque_return_opaque_two_twin_sync_sse( + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire_rust_auto_opaque_return_opaque_two_twin_sync_sse( + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire_rust_auto_opaque_return_opaque_two_twin_sync_ssePtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_sync_sse'); + late final _wire_rust_auto_opaque_return_opaque_two_twin_sync_sse = + _wire_rust_auto_opaque_return_opaque_two_twin_sync_ssePtr.asFunction< + WireSyncRust2DartSse Function(ffi.Pointer, int, int)>(); + WireSyncRust2DartSse wire_rust_auto_opaque_return_own_twin_sync_sse( ffi.Pointer ptr_, int rust_vec_len_, @@ -55329,6 +55800,36 @@ class RustLibWire implements BaseWire { _wire_rust_auto_opaque_plus_sign_return_twin_normalPtr .asFunction(); + void wire_rust_auto_opaque_return_opaque_one_and_two_twin_normal( + int port_, + ) { + return _wire_rust_auto_opaque_return_opaque_one_and_two_twin_normal( + port_, + ); + } + + late final _wire_rust_auto_opaque_return_opaque_one_and_two_twin_normalPtr = + _lookup>( + 'frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_normal'); + late final _wire_rust_auto_opaque_return_opaque_one_and_two_twin_normal = + _wire_rust_auto_opaque_return_opaque_one_and_two_twin_normalPtr + .asFunction(); + + void wire_rust_auto_opaque_return_opaque_two_twin_normal( + int port_, + ) { + return _wire_rust_auto_opaque_return_opaque_two_twin_normal( + port_, + ); + } + + late final _wire_rust_auto_opaque_return_opaque_two_twin_normalPtr = _lookup< + ffi.NativeFunction>( + 'frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_normal'); + late final _wire_rust_auto_opaque_return_opaque_two_twin_normal = + _wire_rust_auto_opaque_return_opaque_two_twin_normalPtr + .asFunction(); + void wire_rust_auto_opaque_return_own_twin_normal( int port_, int initial, @@ -57241,6 +57742,262 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSsePtr .asFunction)>(); + void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSsePtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse'); + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse = + _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSsePtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSsePtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse'); + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse = + _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSsePtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSsePtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse'); + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse = + _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSsePtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSsePtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse'); + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse = + _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSsePtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSyncPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync'); + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync = + _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSyncPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSyncPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync'); + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync = + _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSyncPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSyncPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync'); + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync = + _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSyncPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSyncPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync'); + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync = + _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSyncPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSsePtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse'); + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse = + _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSsePtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSsePtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse'); + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse = + _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSsePtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSsePtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse'); + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse = + _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSsePtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSsePtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse'); + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse = + _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSsePtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal'); + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal = + _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormalPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal'); + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal = + _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormalPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal'); + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal = + _rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormalPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal'); + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal = + _rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormalPtr + .asFunction)>(); + ffi.Pointer cst_new_box_application_env() { return _cst_new_box_application_env(); } diff --git a/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart b/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart index 0ebacb631e..92261e372e 100644 --- a/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart +++ b/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart @@ -336,6 +336,38 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_StructWithGoodAndOpaqueFieldTwinSyncSsePtr => wire.rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueOneTwinSseOpaqueTwoTwinSsePtr => + wire.rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueTwoTwinSsePtr => wire + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueOneTwinSyncOpaqueTwoTwinSyncPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueTwoTwinSyncPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSsePtr => + wire.rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueTwoTwinSyncSsePtr => wire + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueOneTwinNormalOpaqueTwoTwinNormalPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_OpaqueTwoTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal; + @protected AnyhowException dco_decode_AnyhowException(dynamic raw); @@ -424,6 +456,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse( dynamic raw); + @protected + OpaqueOneTwinSseOpaqueTwoTwinSse + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic raw); + + @protected + OpaqueTwoTwinSse + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic raw); + + @protected + OpaqueOneTwinSyncOpaqueTwoTwinSync + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic raw); + + @protected + OpaqueTwoTwinSync + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic raw); + + @protected + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic raw); + + @protected + OpaqueTwoTwinSyncSse + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic raw); + + @protected + OpaqueOneTwinNormalOpaqueTwoTwinNormal + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic raw); + + @protected + OpaqueTwoTwinNormal + dco_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic raw); + @protected BoxHelloTraitTwinNormal dco_decode_Auto_RefMut_RustOpaque_stdsyncRwLockBoxdynHelloTraitTwinNormal( @@ -758,6 +830,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse( dynamic raw); + @protected + OpaqueOneTwinSseOpaqueTwoTwinSse + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic raw); + + @protected + OpaqueTwoTwinSse + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic raw); + + @protected + OpaqueOneTwinSyncOpaqueTwoTwinSync + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic raw); + + @protected + OpaqueTwoTwinSync + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic raw); + + @protected + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic raw); + + @protected + OpaqueTwoTwinSyncSse + dco_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic raw); + + @protected + OpaqueOneTwinNormalOpaqueTwoTwinNormal + dco_decode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic raw); + + @protected + OpaqueTwoTwinNormal + dco_decode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic raw); + @protected String dco_decode_String(dynamic raw); @@ -4447,6 +4559,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse( SseDeserializer deserializer); + @protected + OpaqueOneTwinSseOpaqueTwoTwinSse + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinSse + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + SseDeserializer deserializer); + + @protected + OpaqueOneTwinSyncOpaqueTwoTwinSync + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinSync + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + SseDeserializer deserializer); + + @protected + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinSyncSse + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + SseDeserializer deserializer); + + @protected + OpaqueOneTwinNormalOpaqueTwoTwinNormal + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinNormal + sse_decode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + SseDeserializer deserializer); + @protected BoxHelloTraitTwinNormal sse_decode_Auto_RefMut_RustOpaque_stdsyncRwLockBoxdynHelloTraitTwinNormal( @@ -4732,6 +4884,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse( SseDeserializer deserializer); + @protected + OpaqueOneTwinSseOpaqueTwoTwinSse + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinSse + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + SseDeserializer deserializer); + + @protected + OpaqueOneTwinSyncOpaqueTwoTwinSync + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinSync + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + SseDeserializer deserializer); + + @protected + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinSyncSse + sse_decode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + SseDeserializer deserializer); + + @protected + OpaqueOneTwinNormalOpaqueTwoTwinNormal + sse_decode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + SseDeserializer deserializer); + + @protected + OpaqueTwoTwinNormal + sse_decode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + SseDeserializer deserializer); + @protected String sse_decode_String(SseDeserializer deserializer); @@ -16369,6 +16561,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse( StructWithGoodAndOpaqueFieldTwinSyncSse raw); + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueOneTwinSseOpaqueTwoTwinSse raw); + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueTwoTwinSse raw); + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueOneTwinSyncOpaqueTwoTwinSync raw); + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueTwoTwinSync raw); + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse raw); + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueTwoTwinSyncSse raw); + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueOneTwinNormalOpaqueTwoTwinNormal raw); + + @protected + PlatformPointer + cst_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueTwoTwinNormal raw); + @protected PlatformPointer cst_encode_Auto_RefMut_RustOpaque_stdsyncRwLockBoxdynHelloTraitTwinNormal( @@ -16693,6 +16925,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { cst_encode_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse( StructWithGoodAndOpaqueFieldTwinSyncSse raw); + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueOneTwinSseOpaqueTwoTwinSse raw); + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueTwoTwinSse raw); + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueOneTwinSyncOpaqueTwoTwinSync raw); + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueTwoTwinSync raw); + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse raw); + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueTwoTwinSyncSse raw); + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueOneTwinNormalOpaqueTwoTwinNormal raw); + + @protected + PlatformPointer + cst_encode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueTwoTwinNormal raw); + @protected int cst_encode_application_mode(ApplicationMode raw); @@ -16856,6 +17128,48 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { StructWithGoodAndOpaqueFieldTwinSyncSse self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueOneTwinSseOpaqueTwoTwinSse self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueTwoTwinSse self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueOneTwinSyncOpaqueTwoTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueTwoTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse self, + SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueTwoTwinSyncSse self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueOneTwinNormalOpaqueTwoTwinNormal self, + SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueTwoTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_RefMut_RustOpaque_stdsyncRwLockBoxdynHelloTraitTwinNormal( @@ -17200,6 +17514,48 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { StructWithGoodAndOpaqueFieldTwinSyncSse self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueOneTwinSseOpaqueTwoTwinSse self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + OpaqueTwoTwinSse self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueOneTwinSyncOpaqueTwoTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + OpaqueTwoTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueOneTwinSyncSseOpaqueTwoTwinSyncSse self, + SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + OpaqueTwoTwinSyncSse self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueOneTwinNormalOpaqueTwoTwinNormal self, + SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + OpaqueTwoTwinNormal self, SseSerializer serializer); + @protected void sse_encode_String(String self, SseSerializer serializer); @@ -28479,6 +28835,22 @@ class RustLibWire extends BaseWire { wasmModule.wire_rust_auto_opaque_plus_sign_return_twin_sse( port_, ptr_, rust_vec_len_, data_len_); + void wire_rust_auto_opaque_return_opaque_one_and_two_twin_sse( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule.wire_rust_auto_opaque_return_opaque_one_and_two_twin_sse( + port_, ptr_, rust_vec_len_, data_len_); + + void wire_rust_auto_opaque_return_opaque_two_twin_sse( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule.wire_rust_auto_opaque_return_opaque_two_twin_sse( + port_, ptr_, rust_vec_len_, data_len_); + void wire_rust_auto_opaque_return_own_twin_sse( NativePortType port_, PlatformGeneralizedUint8ListPtr ptr_, @@ -28676,6 +29048,14 @@ class RustLibWire extends BaseWire { wire_rust_auto_opaque_plus_sign_return_twin_sync() => wasmModule.wire_rust_auto_opaque_plus_sign_return_twin_sync(); + dynamic /* flutter_rust_bridge::for_generated::WireSyncRust2DartDco */ + wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync() => wasmModule + .wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync(); + + dynamic /* flutter_rust_bridge::for_generated::WireSyncRust2DartDco */ + wire_rust_auto_opaque_return_opaque_two_twin_sync() => + wasmModule.wire_rust_auto_opaque_return_opaque_two_twin_sync(); + dynamic /* flutter_rust_bridge::for_generated::WireSyncRust2DartDco */ wire_rust_auto_opaque_return_own_twin_sync(int initial) => wasmModule.wire_rust_auto_opaque_return_own_twin_sync(initial); @@ -28909,6 +29289,23 @@ class RustLibWire extends BaseWire { wasmModule.wire_rust_auto_opaque_plus_sign_return_twin_sync_sse( ptr_, rust_vec_len_, data_len_); + dynamic /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse( + ptr_, rust_vec_len_, data_len_); + + dynamic /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire_rust_auto_opaque_return_opaque_two_twin_sync_sse( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule.wire_rust_auto_opaque_return_opaque_two_twin_sync_sse( + ptr_, rust_vec_len_, data_len_); + dynamic /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ wire_rust_auto_opaque_return_own_twin_sync_sse( PlatformGeneralizedUint8ListPtr ptr_, @@ -30147,6 +30544,15 @@ class RustLibWire extends BaseWire { NativePortType port_) => wasmModule.wire_rust_auto_opaque_plus_sign_return_twin_normal(port_); + void wire_rust_auto_opaque_return_opaque_one_and_two_twin_normal( + NativePortType port_) => + wasmModule + .wire_rust_auto_opaque_return_opaque_one_and_two_twin_normal(port_); + + void wire_rust_auto_opaque_return_opaque_two_twin_normal( + NativePortType port_) => + wasmModule.wire_rust_auto_opaque_return_opaque_two_twin_normal(port_); + void wire_rust_auto_opaque_return_own_twin_normal( NativePortType port_, int initial) => wasmModule.wire_rust_auto_opaque_return_own_twin_normal(port_, initial); @@ -30699,6 +31105,102 @@ class RustLibWire extends BaseWire { wasmModule .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse( ptr); + + void rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr); } @JS('wasm_bindgen') @@ -35543,6 +36045,18 @@ class RustLibWasmModule implements WasmModule { int rust_vec_len_, int data_len_); + external void wire_rust_auto_opaque_return_opaque_one_and_two_twin_sse( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void wire_rust_auto_opaque_return_opaque_two_twin_sse( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + external void wire_rust_auto_opaque_return_own_twin_sse(NativePortType port_, PlatformGeneralizedUint8ListPtr ptr_, int rust_vec_len_, int data_len_); @@ -35674,6 +36188,12 @@ class RustLibWasmModule implements WasmModule { external dynamic /* flutter_rust_bridge::for_generated::WireSyncRust2DartDco */ wire_rust_auto_opaque_plus_sign_return_twin_sync(); + external dynamic /* flutter_rust_bridge::for_generated::WireSyncRust2DartDco */ + wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync(); + + external dynamic /* flutter_rust_bridge::for_generated::WireSyncRust2DartDco */ + wire_rust_auto_opaque_return_opaque_two_twin_sync(); + external dynamic /* flutter_rust_bridge::for_generated::WireSyncRust2DartDco */ wire_rust_auto_opaque_return_own_twin_sync(int initial); @@ -35833,6 +36353,18 @@ class RustLibWasmModule implements WasmModule { int rust_vec_len_, int data_len_); + external dynamic /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external dynamic /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire_rust_auto_opaque_return_opaque_two_twin_sync_sse( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + external dynamic /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ wire_rust_auto_opaque_return_own_twin_sync_sse( PlatformGeneralizedUint8ListPtr ptr_, @@ -36611,6 +37143,12 @@ class RustLibWasmModule implements WasmModule { external void wire_rust_auto_opaque_plus_sign_return_twin_normal( NativePortType port_); + external void wire_rust_auto_opaque_return_opaque_one_and_two_twin_normal( + NativePortType port_); + + external void wire_rust_auto_opaque_return_opaque_two_twin_normal( + NativePortType port_); + external void wire_rust_auto_opaque_return_own_twin_normal( NativePortType port_, int initial); @@ -36998,4 +37536,68 @@ class RustLibWasmModule implements WasmModule { external void rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockStructWithGoodAndOpaqueFieldTwinSyncSse( dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + dynamic ptr); } diff --git a/frb_example/pure_dart/rust/src/api/pseudo_manual/rust_auto_opaque_twin_sse.rs b/frb_example/pure_dart/rust/src/api/pseudo_manual/rust_auto_opaque_twin_sse.rs index 46a875620b..47c3a24050 100644 --- a/frb_example/pure_dart/rust/src/api/pseudo_manual/rust_auto_opaque_twin_sse.rs +++ b/frb_example/pure_dart/rust/src/api/pseudo_manual/rust_auto_opaque_twin_sse.rs @@ -5,6 +5,7 @@ // FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "rustAsyncSse"]} use flutter_rust_bridge::frb; +use std::path::PathBuf; // TODO auto determine it is opaque or not later #[frb(opaque)] @@ -267,3 +268,18 @@ pub fn rust_auto_opaque_struct_with_good_and_opaque_field_return_own_twin_sse( opaque: NonCloneSimpleTwinSse { inner: 42 }, } } + +// ================ misc =================== + +// #1577 - this should generate valid Dart code without name collisions +pub struct OpaqueOneTwinSse(PathBuf); +pub struct OpaqueTwoTwinSse(PathBuf); +#[flutter_rust_bridge::frb(serialize)] +pub fn rust_auto_opaque_return_opaque_one_and_two_twin_sse() -> (OpaqueOneTwinSse, OpaqueTwoTwinSse) +{ + unimplemented!() +} +#[flutter_rust_bridge::frb(serialize)] +pub fn rust_auto_opaque_return_opaque_two_twin_sse() -> OpaqueTwoTwinSse { + unimplemented!() +} diff --git a/frb_example/pure_dart/rust/src/api/pseudo_manual/rust_auto_opaque_twin_sync.rs b/frb_example/pure_dart/rust/src/api/pseudo_manual/rust_auto_opaque_twin_sync.rs index 29ee4086e7..328a87ac4b 100644 --- a/frb_example/pure_dart/rust/src/api/pseudo_manual/rust_auto_opaque_twin_sync.rs +++ b/frb_example/pure_dart/rust/src/api/pseudo_manual/rust_auto_opaque_twin_sync.rs @@ -5,6 +5,7 @@ // FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "rustAsyncSse"]} use flutter_rust_bridge::frb; +use std::path::PathBuf; // TODO auto determine it is opaque or not later #[frb(opaque)] @@ -267,3 +268,18 @@ pub fn rust_auto_opaque_struct_with_good_and_opaque_field_return_own_twin_sync( opaque: NonCloneSimpleTwinSync { inner: 42 }, } } + +// ================ misc =================== + +// #1577 - this should generate valid Dart code without name collisions +pub struct OpaqueOneTwinSync(PathBuf); +pub struct OpaqueTwoTwinSync(PathBuf); +#[flutter_rust_bridge::frb(sync)] +pub fn rust_auto_opaque_return_opaque_one_and_two_twin_sync( +) -> (OpaqueOneTwinSync, OpaqueTwoTwinSync) { + unimplemented!() +} +#[flutter_rust_bridge::frb(sync)] +pub fn rust_auto_opaque_return_opaque_two_twin_sync() -> OpaqueTwoTwinSync { + unimplemented!() +} diff --git a/frb_example/pure_dart/rust/src/api/pseudo_manual/rust_auto_opaque_twin_sync_sse.rs b/frb_example/pure_dart/rust/src/api/pseudo_manual/rust_auto_opaque_twin_sync_sse.rs index 4283226927..36858f7cd4 100644 --- a/frb_example/pure_dart/rust/src/api/pseudo_manual/rust_auto_opaque_twin_sync_sse.rs +++ b/frb_example/pure_dart/rust/src/api/pseudo_manual/rust_auto_opaque_twin_sync_sse.rs @@ -5,6 +5,7 @@ // FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "rustAsyncSse"]} use flutter_rust_bridge::frb; +use std::path::PathBuf; // TODO auto determine it is opaque or not later #[frb(opaque)] @@ -312,3 +313,20 @@ pub fn rust_auto_opaque_struct_with_good_and_opaque_field_return_own_twin_sync_s opaque: NonCloneSimpleTwinSyncSse { inner: 42 }, } } + +// ================ misc =================== + +// #1577 - this should generate valid Dart code without name collisions +pub struct OpaqueOneTwinSyncSse(PathBuf); +pub struct OpaqueTwoTwinSyncSse(PathBuf); +#[flutter_rust_bridge::frb(serialize)] +#[flutter_rust_bridge::frb(sync)] +pub fn rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse( +) -> (OpaqueOneTwinSyncSse, OpaqueTwoTwinSyncSse) { + unimplemented!() +} +#[flutter_rust_bridge::frb(serialize)] +#[flutter_rust_bridge::frb(sync)] +pub fn rust_auto_opaque_return_opaque_two_twin_sync_sse() -> OpaqueTwoTwinSyncSse { + unimplemented!() +} diff --git a/frb_example/pure_dart/rust/src/api/rust_auto_opaque.rs b/frb_example/pure_dart/rust/src/api/rust_auto_opaque.rs index 529e4ca054..9e294bc684 100644 --- a/frb_example/pure_dart/rust/src/api/rust_auto_opaque.rs +++ b/frb_example/pure_dart/rust/src/api/rust_auto_opaque.rs @@ -1,6 +1,7 @@ // FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "rustAsyncSse"]} use flutter_rust_bridge::frb; +use std::path::PathBuf; // TODO auto determine it is opaque or not later #[frb(opaque)] @@ -236,3 +237,16 @@ pub fn rust_auto_opaque_struct_with_good_and_opaque_field_return_own_twin_normal opaque: NonCloneSimpleTwinNormal { inner: 42 }, } } + +// ================ misc =================== + +// #1577 - this should generate valid Dart code without name collisions +pub struct OpaqueOneTwinNormal(PathBuf); +pub struct OpaqueTwoTwinNormal(PathBuf); +pub fn rust_auto_opaque_return_opaque_one_and_two_twin_normal( +) -> (OpaqueOneTwinNormal, OpaqueTwoTwinNormal) { + unimplemented!() +} +pub fn rust_auto_opaque_return_opaque_two_twin_normal() -> OpaqueTwoTwinNormal { + unimplemented!() +} diff --git a/frb_example/pure_dart/rust/src/frb_generated.io.rs b/frb_example/pure_dart/rust/src/frb_generated.io.rs index 4290ac282f..e3967ada11 100644 --- a/frb_example/pure_dart/rust/src/frb_generated.io.rs +++ b/frb_example/pure_dart/rust/src/frb_generated.io.rs @@ -347,6 +347,158 @@ impl unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } } } +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueOneTwinSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + )>, + >, + > for *const std::ffi::c_void +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueOneTwinSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + )>, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + >, + >, + > for *const std::ffi::c_void +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueOneTwinSync, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + )>, + >, + > for *const std::ffi::c_void +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueOneTwinSync, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + )>, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + >, + >, + > for *const std::ffi::c_void +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueOneTwinSyncSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + )>, + >, + > for *const std::ffi::c_void +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueOneTwinSyncSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + )>, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + >, + >, + > for *const std::ffi::c_void +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + >, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::rust_auto_opaque::OpaqueOneTwinNormal, + crate::api::rust_auto_opaque::OpaqueTwoTwinNormal, + )>, + >, + > for *const std::ffi::c_void +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::rust_auto_opaque::OpaqueOneTwinNormal, + crate::api::rust_auto_opaque::OpaqueTwoTwinNormal, + )>, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock, + >, + > for *const std::ffi::c_void +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} impl CstDecode for *mut wire_cst_list_prim_u_8 { fn cst_decode(self) -> String { let vec: Vec = self.cst_decode(); @@ -26990,6 +27142,31 @@ pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_plus_sign_r wire_rust_auto_opaque_plus_sign_return_twin_sse_impl(port_, ptr_, rust_vec_len_, data_len_) } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_sse( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire_rust_auto_opaque_return_opaque_one_and_two_twin_sse_impl( + port_, + ptr_, + rust_vec_len_, + data_len_, + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_sse( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire_rust_auto_opaque_return_opaque_two_twin_sse_impl(port_, ptr_, rust_vec_len_, data_len_) +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_own_twin_sse( port_: i64, @@ -27279,6 +27456,18 @@ pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_plus_sign_r wire_rust_auto_opaque_plus_sign_return_twin_sync_impl() } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_impl() +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_sync( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire_rust_auto_opaque_return_opaque_two_twin_sync_impl() +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_own_twin_sync( initial: i32, @@ -27577,6 +27766,28 @@ pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_plus_sign_r wire_rust_auto_opaque_plus_sign_return_twin_sync_sse_impl(ptr_, rust_vec_len_, data_len_) } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse( + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse_impl( + ptr_, + rust_vec_len_, + data_len_, + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_sync_sse( + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire_rust_auto_opaque_return_opaque_two_twin_sync_sse_impl(ptr_, rust_vec_len_, data_len_) +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_own_twin_sync_sse( ptr_: *mut u8, @@ -29349,6 +29560,20 @@ pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_plus_sign_r wire_rust_auto_opaque_plus_sign_return_twin_normal_impl(port_) } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_one_and_two_twin_normal( + port_: i64, +) { + wire_rust_auto_opaque_return_opaque_one_and_two_twin_normal_impl(port_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_opaque_two_twin_normal( + port_: i64, +) { + wire_rust_auto_opaque_return_opaque_two_twin_normal_impl(port_) +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_wire_rust_auto_opaque_return_own_twin_normal( port_: i64, @@ -30430,6 +30655,218 @@ pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_R } } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueOneTwinSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + )>, + >(ptr); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueOneTwinSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + )>, + >(ptr); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + >, + >(ptr); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + >, + >(ptr); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueOneTwinSync, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + )>, + >(ptr); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueOneTwinSync, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + )>, + >(ptr); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + >, + >(ptr); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + >, + >(ptr); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueOneTwinSyncSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + )>, + >(ptr); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueOneTwinSyncSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + )>, + >(ptr); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + >, + >(ptr); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + >, + >(ptr); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock<( + crate::api::rust_auto_opaque::OpaqueOneTwinNormal, + crate::api::rust_auto_opaque::OpaqueTwoTwinNormal, + )>, + >(ptr); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock<( + crate::api::rust_auto_opaque::OpaqueOneTwinNormal, + crate::api::rust_auto_opaque::OpaqueTwoTwinNormal, + )>, + >(ptr); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock, + >(ptr); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock, + >(ptr); + } +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_cst_new_box_application_env( ) -> *mut wire_cst_application_env { diff --git a/frb_example/pure_dart/rust/src/frb_generated.rs b/frb_example/pure_dart/rust/src/frb_generated.rs index a50afa648c..0f54b03036 100644 --- a/frb_example/pure_dart/rust/src/frb_generated.rs +++ b/frb_example/pure_dart/rust/src/frb_generated.rs @@ -18771,6 +18771,36 @@ fn wire_rust_auto_opaque_plus_sign_return_twin_sse_impl( })()) } }) } +fn wire_rust_auto_opaque_return_opaque_one_and_two_twin_sse_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "rust_auto_opaque_return_opaque_one_and_two_twin_sse", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + deserializer.end(); move |context| { + transform_result_sse((move || { + Result::<_,()>::Ok(flutter_rust_bridge::for_generated::rust_auto_opaque_encode(crate::api::pseudo_manual::rust_auto_opaque_twin_sse::rust_auto_opaque_return_opaque_one_and_two_twin_sse())) + })()) + } }) +} +fn wire_rust_auto_opaque_return_opaque_two_twin_sse_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "rust_auto_opaque_return_opaque_two_twin_sse", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + deserializer.end(); move |context| { + transform_result_sse((move || { + Result::<_,()>::Ok(flutter_rust_bridge::for_generated::rust_auto_opaque_encode(crate::api::pseudo_manual::rust_auto_opaque_twin_sse::rust_auto_opaque_return_opaque_two_twin_sse())) + })()) + } }) +} fn wire_rust_auto_opaque_return_own_twin_sse_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, @@ -19127,6 +19157,20 @@ fn wire_rust_auto_opaque_plus_sign_return_twin_sync_impl( Result::<_,()>::Ok(flutter_rust_bridge::for_generated::rust_auto_opaque_encode(crate::api::pseudo_manual::rust_auto_opaque_twin_sync::rust_auto_opaque_plus_sign_return_twin_sync())) })()) }) } +fn wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_impl( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "rust_auto_opaque_return_opaque_one_and_two_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + transform_result_dco((move || { + Result::<_,()>::Ok(flutter_rust_bridge::for_generated::rust_auto_opaque_encode(crate::api::pseudo_manual::rust_auto_opaque_twin_sync::rust_auto_opaque_return_opaque_one_and_two_twin_sync())) + })()) }) +} +fn wire_rust_auto_opaque_return_opaque_two_twin_sync_impl( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "rust_auto_opaque_return_opaque_two_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + transform_result_dco((move || { + Result::<_,()>::Ok(flutter_rust_bridge::for_generated::rust_auto_opaque_encode(crate::api::pseudo_manual::rust_auto_opaque_twin_sync::rust_auto_opaque_return_opaque_two_twin_sync())) + })()) }) +} fn wire_rust_auto_opaque_return_own_twin_sync_impl( initial: impl CstDecode, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { @@ -19509,6 +19553,32 @@ fn wire_rust_auto_opaque_plus_sign_return_twin_sync_sse_impl( Result::<_,()>::Ok(flutter_rust_bridge::for_generated::rust_auto_opaque_encode(crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::rust_auto_opaque_plus_sign_return_twin_sync_sse())) })()) }) } +fn wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + deserializer.end(); + transform_result_sse((move || { + Result::<_,()>::Ok(flutter_rust_bridge::for_generated::rust_auto_opaque_encode(crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse())) + })()) }) +} +fn wire_rust_auto_opaque_return_opaque_two_twin_sync_sse_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "rust_auto_opaque_return_opaque_two_twin_sync_sse", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + deserializer.end(); + transform_result_sse((move || { + Result::<_,()>::Ok(flutter_rust_bridge::for_generated::rust_auto_opaque_encode(crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::rust_auto_opaque_return_opaque_two_twin_sync_sse())) + })()) }) +} fn wire_rust_auto_opaque_return_own_twin_sync_sse_impl( ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, @@ -22711,6 +22781,24 @@ fn wire_rust_auto_opaque_plus_sign_return_twin_normal_impl( })()) } }) } +fn wire_rust_auto_opaque_return_opaque_one_and_two_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "rust_auto_opaque_return_opaque_one_and_two_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { move |context| { + transform_result_dco((move || { + Result::<_,()>::Ok(flutter_rust_bridge::for_generated::rust_auto_opaque_encode(crate::api::rust_auto_opaque::rust_auto_opaque_return_opaque_one_and_two_twin_normal())) + })()) + } }) +} +fn wire_rust_auto_opaque_return_opaque_two_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "rust_auto_opaque_return_opaque_two_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { move |context| { + transform_result_dco((move || { + Result::<_,()>::Ok(flutter_rust_bridge::for_generated::rust_auto_opaque_encode(crate::api::rust_auto_opaque::rust_auto_opaque_return_opaque_two_twin_normal())) + })()) + } }) +} fn wire_rust_auto_opaque_return_own_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, initial: impl CstDecode, @@ -24819,6 +24907,108 @@ impl SseDecode } } +impl SseDecode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueOneTwinSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + )>, + > +{ + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { flutter_rust_bridge::for_generated::sse_decode_rust_opaque(inner) }; + } +} + +impl SseDecode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock, + > +{ + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { flutter_rust_bridge::for_generated::sse_decode_rust_opaque(inner) }; + } +} + +impl SseDecode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueOneTwinSync, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + )>, + > +{ + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { flutter_rust_bridge::for_generated::sse_decode_rust_opaque(inner) }; + } +} + +impl SseDecode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock, + > +{ + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { flutter_rust_bridge::for_generated::sse_decode_rust_opaque(inner) }; + } +} + +impl SseDecode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueOneTwinSyncSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + )>, + > +{ + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { flutter_rust_bridge::for_generated::sse_decode_rust_opaque(inner) }; + } +} + +impl SseDecode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + >, + > +{ + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { flutter_rust_bridge::for_generated::sse_decode_rust_opaque(inner) }; + } +} + +impl SseDecode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::rust_auto_opaque::OpaqueOneTwinNormal, + crate::api::rust_auto_opaque::OpaqueTwoTwinNormal, + )>, + > +{ + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { flutter_rust_bridge::for_generated::sse_decode_rust_opaque(inner) }; + } +} + +impl SseDecode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock, + > +{ + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { flutter_rust_bridge::for_generated::sse_decode_rust_opaque(inner) }; + } +} + impl SseDecode for String { fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = >::sse_decode(deserializer); @@ -44642,6 +44832,116 @@ impl SseEncode } } +impl SseEncode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueOneTwinSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + )>, + > +{ + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock, + > +{ + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueOneTwinSync, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + )>, + > +{ + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock, + > +{ + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueOneTwinSyncSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + )>, + > +{ + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + >, + > +{ + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::rust_auto_opaque::OpaqueOneTwinNormal, + crate::api::rust_auto_opaque::OpaqueTwoTwinNormal, + )>, + > +{ + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for flutter_rust_bridge::RustOpaque< + std::sync::RwLock, + > +{ + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for String { fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { >::sse_encode(self.into_bytes(), serializer); diff --git a/frb_example/pure_dart/rust/src/frb_generated.web.rs b/frb_example/pure_dart/rust/src/frb_generated.web.rs index 31d2f26397..9b625dfcbe 100644 --- a/frb_example/pure_dart/rust/src/frb_generated.web.rs +++ b/frb_example/pure_dart/rust/src/frb_generated.web.rs @@ -9151,6 +9151,158 @@ impl unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } } } +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueOneTwinSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + )>, + >, + > for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueOneTwinSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + )>, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + >, + >, + > for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueOneTwinSync, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + )>, + >, + > for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueOneTwinSync, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + )>, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + >, + >, + > for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueOneTwinSyncSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + )>, + >, + > for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueOneTwinSyncSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + )>, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + >, + >, + > for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + >, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::rust_auto_opaque::OpaqueOneTwinNormal, + crate::api::rust_auto_opaque::OpaqueTwoTwinNormal, + )>, + >, + > for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock<( + crate::api::rust_auto_opaque::OpaqueOneTwinNormal, + crate::api::rust_auto_opaque::OpaqueTwoTwinNormal, + )>, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} +impl + CstDecode< + flutter_rust_bridge::RustOpaque< + std::sync::RwLock, + >, + > for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + fn cst_decode( + self, + ) -> flutter_rust_bridge::RustOpaque< + std::sync::RwLock, + > { + unsafe { flutter_rust_bridge::for_generated::cst_decode_rust_opaque(self) } + } +} impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { fn cst_decode(self) -> String { self.as_string().expect("non-UTF-8 string, or not a string") @@ -21220,6 +21372,31 @@ pub fn wire_rust_auto_opaque_plus_sign_return_twin_sse( wire_rust_auto_opaque_plus_sign_return_twin_sse_impl(port_, ptr_, rust_vec_len_, data_len_) } +#[wasm_bindgen] +pub fn wire_rust_auto_opaque_return_opaque_one_and_two_twin_sse( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire_rust_auto_opaque_return_opaque_one_and_two_twin_sse_impl( + port_, + ptr_, + rust_vec_len_, + data_len_, + ) +} + +#[wasm_bindgen] +pub fn wire_rust_auto_opaque_return_opaque_two_twin_sse( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire_rust_auto_opaque_return_opaque_two_twin_sse_impl(port_, ptr_, rust_vec_len_, data_len_) +} + #[wasm_bindgen] pub fn wire_rust_auto_opaque_return_own_twin_sse( port_: flutter_rust_bridge::for_generated::MessagePort, @@ -21509,6 +21686,18 @@ pub fn wire_rust_auto_opaque_plus_sign_return_twin_sync( wire_rust_auto_opaque_plus_sign_return_twin_sync_impl() } +#[wasm_bindgen] +pub fn wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_impl() +} + +#[wasm_bindgen] +pub fn wire_rust_auto_opaque_return_opaque_two_twin_sync( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire_rust_auto_opaque_return_opaque_two_twin_sync_impl() +} + #[wasm_bindgen] pub fn wire_rust_auto_opaque_return_own_twin_sync( initial: i32, @@ -21807,6 +21996,28 @@ pub fn wire_rust_auto_opaque_plus_sign_return_twin_sync_sse( wire_rust_auto_opaque_plus_sign_return_twin_sync_sse_impl(ptr_, rust_vec_len_, data_len_) } +#[wasm_bindgen] +pub fn wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire_rust_auto_opaque_return_opaque_one_and_two_twin_sync_sse_impl( + ptr_, + rust_vec_len_, + data_len_, + ) +} + +#[wasm_bindgen] +pub fn wire_rust_auto_opaque_return_opaque_two_twin_sync_sse( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire_rust_auto_opaque_return_opaque_two_twin_sync_sse_impl(ptr_, rust_vec_len_, data_len_) +} + #[wasm_bindgen] pub fn wire_rust_auto_opaque_return_own_twin_sync_sse( ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, @@ -23580,6 +23791,20 @@ pub fn wire_rust_auto_opaque_plus_sign_return_twin_normal( wire_rust_auto_opaque_plus_sign_return_twin_normal_impl(port_) } +#[wasm_bindgen] +pub fn wire_rust_auto_opaque_return_opaque_one_and_two_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { + wire_rust_auto_opaque_return_opaque_one_and_two_twin_normal_impl(port_) +} + +#[wasm_bindgen] +pub fn wire_rust_auto_opaque_return_opaque_two_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { + wire_rust_auto_opaque_return_opaque_two_twin_normal_impl(port_) +} + #[wasm_bindgen] pub fn wire_rust_auto_opaque_return_own_twin_normal( port_: flutter_rust_bridge::for_generated::MessagePort, @@ -24634,3 +24859,215 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockStructWithGoodAnd >(ptr); } } + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueOneTwinSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + )>, + >(ptr); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueOneTwinSsecrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueOneTwinSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + )>, + >(ptr); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + >, + >(ptr); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sseOpaqueTwoTwinSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sse::OpaqueTwoTwinSse, + >, + >(ptr); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueOneTwinSync, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + )>, + >(ptr); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueOneTwinSynccrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueOneTwinSync, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + )>, + >(ptr); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + >, + >(ptr); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_syncOpaqueTwoTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync::OpaqueTwoTwinSync, + >, + >(ptr); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueOneTwinSyncSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + )>, + >(ptr); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueOneTwinSyncSsecrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock<( + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueOneTwinSyncSse, + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + )>, + >(ptr); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + >, + >(ptr); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapipseudo_manualrust_auto_opaque_twin_sync_sseOpaqueTwoTwinSyncSse( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock< + crate::api::pseudo_manual::rust_auto_opaque_twin_sync_sse::OpaqueTwoTwinSyncSse, + >, + >(ptr); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock<( + crate::api::rust_auto_opaque::OpaqueOneTwinNormal, + crate::api::rust_auto_opaque::OpaqueTwoTwinNormal, + )>, + >(ptr); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueOneTwinNormalcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock<( + crate::api::rust_auto_opaque::OpaqueOneTwinNormal, + crate::api::rust_auto_opaque::OpaqueTwoTwinNormal, + )>, + >(ptr); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_increment_strong_count::< + std::sync::RwLock, + >(ptr); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_stdsyncRwLockcrateapirust_auto_opaqueOpaqueTwoTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + flutter_rust_bridge::for_generated::rust_arc_decrement_strong_count::< + std::sync::RwLock, + >(ptr); + } +} diff --git a/website/docs/guides/miscellaneous/upgrade/index.md b/website/docs/guides/miscellaneous/upgrade/index.md new file mode 100644 index 0000000000..9f9c655471 --- /dev/null +++ b/website/docs/guides/miscellaneous/upgrade/index.md @@ -0,0 +1,7 @@ +# Upgrade + +```mdx-code-block +import DocCardList from '@theme/DocCardList'; + + +``` diff --git a/website/docs/guides/miscellaneous/upgrade/regular.md b/website/docs/guides/miscellaneous/upgrade/regular.md new file mode 100644 index 0000000000..855a30921a --- /dev/null +++ b/website/docs/guides/miscellaneous/upgrade/regular.md @@ -0,0 +1,7 @@ +# Regular upgrades + +Since the bridge consists of three components, we need to upgrade them together: + +1. **Code generator**: Run `cargo install 'flutter_rust_bridge_codegen@^2.0.0-dev.0'`, or use other installation methods mentioned in [the quickstart](../../../quickstart). +2. **Rust runtime**: Edit `Cargo.toml`, changing `flutter_rust_bridge = "=x.x.x"`. +3. **Dart runtime**: Edit `pubspec.yaml`, changing `flutter_rust_bridge: x.x.x`. diff --git a/website/docs/guides/miscellaneous/upgrade.md b/website/docs/guides/miscellaneous/upgrade/v2.md similarity index 90% rename from website/docs/guides/miscellaneous/upgrade.md rename to website/docs/guides/miscellaneous/upgrade/v2.md index dfc525d5da..41cdc5b0e3 100644 --- a/website/docs/guides/miscellaneous/upgrade.md +++ b/website/docs/guides/miscellaneous/upgrade/v2.md @@ -5,10 +5,10 @@ This guide shows how to upgrade a project using flutter_rust_bridge V1 to V2. ## Concrete commands and checklist :::info -This is just one approach, see below for more approaches +This is just one approach, see below for more approaches. ::: -* Follow the [quickstart](../../quickstart) to integrate V2 boilerplate into the existing project (in a few commands). Usually, you just need to run `flutter_rust_bridge_codegen integrate`. +* Follow the [quickstart](../../../quickstart) to integrate V2 boilerplate into the existing project (in a few commands). Usually, you just need to run `flutter_rust_bridge_codegen integrate`. * Move original Rust code (e.g. in `api.rs`) to `rust/src/api/simple.rs`. (You can also split into multiple files, e.g. `apple.rs`, `orange.rs`, etc.) * Run code generator and watch for code changes by running `flutter_rust_bridge_codegen generate --watch`. * Fix compilation errors (usually just a rename or relocation) and runtime exceptions (usually have hints). @@ -16,13 +16,19 @@ This is just one approach, see below for more approaches ## Alternative approaches +
+ Surely, there are alternative approaches. For example, if you want to keep the compilation and integration between Rust and Dart, or like to use command line arguments, just find the corresponding counterparts in V2 and rename things. +
+ ## Changes and quick renames +
+ * `SyncReturn` type becomes annotation: Change `fn f() -> SyncReturn {}` to `#[frb(sync)] fn f() -> T {}` * `api.functionName()` -> `functionName()` * `DartAbi` -> `DartDynamic` (simple name alias) @@ -36,8 +42,12 @@ Some flags are removed, when, for example, they exist mainly for compatibility of later V1 with earlier V1 versions. If you find the removed flag important for your scenario, feel free to create an issue. +
+ ## Extra checklist for cleanup +
+ :::info Here are some concrete possibilities, which may or may not be your own case. This serves to check whether there are missing cleanup steps. @@ -60,3 +70,5 @@ This serves to check whether there are missing cleanup steps. * Remove `bridge_generated.h` from the "Copy Bundle Resources" build phase 2. Delete the `ios/Runner/libmyapp.a` and remove it from the "Link Binary With Libraries" build phase. 3. Remove the `print("dummy_value=\(dummy_method_to_enforce_bundling())");` line in `ios/Runner/AppDelegate.swift` if you had that workaround. + +
diff --git a/website/docs/guides/miscellaneous/whats-new.md b/website/docs/guides/miscellaneous/whats-new.md index ec16456e76..d9f9e6da0b 100644 --- a/website/docs/guides/miscellaneous/whats-new.md +++ b/website/docs/guides/miscellaneous/whats-new.md @@ -44,4 +44,4 @@ where there are lists of features (advantages) and a quick show-me-the-code. ## Upgrade guide -To upgrade, please refer to [the upgrade guide](upgrade). +To upgrade, please refer to [the upgrade guide](upgrade/v2). diff --git a/website/sidebars.js b/website/sidebars.js index d789866cc8..98a2b2ef83 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -187,7 +187,19 @@ const sidebars = { 'guides/miscellaneous/compatibility', 'guides/miscellaneous/deployment', 'guides/miscellaneous/whats-new', - 'guides/miscellaneous/upgrade', + { + type: 'category', + label: 'Upgrade', + collapsed: true, + link: { + type: 'doc', + id: 'guides/miscellaneous/upgrade/index', + }, + items: [ + 'guides/miscellaneous/upgrade/v2', + 'guides/miscellaneous/upgrade/regular', + ], + }, ], }, {