2024-02-06 20:19:53 +08:00
|
|
|
// This file is automatically generated, so please do not edit it.
|
|
|
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.23.
|
|
|
|
|
|
|
|
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
|
|
|
|
|
|
|
|
import 'api/downloader_api.dart';
|
2024-02-07 00:20:06 +08:00
|
|
|
import 'api/http_api.dart';
|
2024-02-06 20:19:53 +08:00
|
|
|
import 'dart:async';
|
|
|
|
import 'dart:convert';
|
|
|
|
import 'downloader.dart';
|
|
|
|
import 'frb_generated.dart';
|
2024-02-07 19:32:36 +08:00
|
|
|
import 'http_package.dart';
|
2024-02-06 20:19:53 +08:00
|
|
|
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated_web.dart';
|
|
|
|
|
|
|
|
abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|
|
|
RustLibApiImplPlatform({
|
|
|
|
required super.handler,
|
|
|
|
required super.wire,
|
|
|
|
required super.generalizedFrbRustBinding,
|
|
|
|
required super.portManager,
|
|
|
|
});
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
CrossPlatformFinalizerArg
|
|
|
|
get rust_arc_decrement_strong_count_ReqwestVersionPtr => wire
|
|
|
|
.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion;
|
|
|
|
|
|
|
|
@protected
|
|
|
|
ReqwestVersion
|
|
|
|
dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
|
|
dynamic raw);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
Map<String, String> dco_decode_Map_String_String(dynamic raw);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
ReqwestVersion
|
|
|
|
dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
|
|
dynamic raw);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
String dco_decode_String(dynamic raw);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
int dco_decode_box_autoadd_u_64(dynamic raw);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
DownloadCallbackData dco_decode_download_callback_data(dynamic raw);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
int dco_decode_i_32(dynamic raw);
|
|
|
|
|
2024-02-07 22:19:43 +08:00
|
|
|
@protected
|
|
|
|
List<String> dco_decode_list_String(dynamic raw);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
Uint8List dco_decode_list_prim_u_8_strict(dynamic raw);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
List<(String, String)> dco_decode_list_record_string_string(dynamic raw);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
MyDownloaderStatus dco_decode_my_downloader_status(dynamic raw);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
MyMethod dco_decode_my_method(dynamic raw);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
MyNetworkItemPendingType dco_decode_my_network_item_pending_type(dynamic raw);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
Map<String, String>? dco_decode_opt_Map_String_String(dynamic raw);
|
|
|
|
|
|
|
|
@protected
|
2024-02-07 19:32:36 +08:00
|
|
|
int? dco_decode_opt_box_autoadd_u_64(dynamic raw);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
Uint8List? dco_decode_opt_list_prim_u_8_strict(dynamic raw);
|
2024-02-07 00:20:06 +08:00
|
|
|
|
|
|
|
@protected
|
|
|
|
(String, String) dco_decode_record_string_string(dynamic raw);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
RustHttpResponse dco_decode_rust_http_response(dynamic raw);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
int dco_decode_u_16(dynamic raw);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
int dco_decode_u_64(dynamic raw);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
int dco_decode_u_8(dynamic raw);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
void dco_decode_unit(dynamic raw);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
int dco_decode_usize(dynamic raw);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
ReqwestVersion
|
|
|
|
sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
Map<String, String> sse_decode_Map_String_String(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
ReqwestVersion
|
|
|
|
sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
String sse_decode_String(SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
int sse_decode_box_autoadd_u_64(SseDeserializer deserializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
DownloadCallbackData sse_decode_download_callback_data(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
int sse_decode_i_32(SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 22:19:43 +08:00
|
|
|
@protected
|
|
|
|
List<String> sse_decode_list_String(SseDeserializer deserializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
List<(String, String)> sse_decode_list_record_string_string(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
MyDownloaderStatus sse_decode_my_downloader_status(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
MyMethod sse_decode_my_method(SseDeserializer deserializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
MyNetworkItemPendingType sse_decode_my_network_item_pending_type(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
Map<String, String>? sse_decode_opt_Map_String_String(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
|
|
|
@protected
|
2024-02-07 19:32:36 +08:00
|
|
|
int? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
Uint8List? sse_decode_opt_list_prim_u_8_strict(SseDeserializer deserializer);
|
2024-02-07 00:20:06 +08:00
|
|
|
|
|
|
|
@protected
|
|
|
|
(String, String) sse_decode_record_string_string(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
RustHttpResponse sse_decode_rust_http_response(SseDeserializer deserializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
int sse_decode_u_16(SseDeserializer deserializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
int sse_decode_u_64(SseDeserializer deserializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
int sse_decode_u_8(SseDeserializer deserializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
void sse_decode_unit(SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
int sse_decode_usize(SseDeserializer deserializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
bool sse_decode_bool(SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
void
|
|
|
|
sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
|
|
ReqwestVersion self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_Map_String_String(
|
|
|
|
Map<String, String> self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
void
|
|
|
|
sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
|
|
ReqwestVersion self, SseSerializer serializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_String(String self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_download_callback_data(
|
|
|
|
DownloadCallbackData self, SseSerializer serializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
void sse_encode_i_32(int self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 22:19:43 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_list_String(List<String> self, SseSerializer serializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_list_prim_u_8_strict(
|
|
|
|
Uint8List self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_list_record_string_string(
|
|
|
|
List<(String, String)> self, SseSerializer serializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_my_downloader_status(
|
|
|
|
MyDownloaderStatus self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_my_method(MyMethod self, SseSerializer serializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_my_network_item_pending_type(
|
|
|
|
MyNetworkItemPendingType self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_opt_Map_String_String(
|
|
|
|
Map<String, String>? self, SseSerializer serializer);
|
|
|
|
|
|
|
|
@protected
|
2024-02-07 19:32:36 +08:00
|
|
|
void sse_encode_opt_box_autoadd_u_64(int? self, SseSerializer serializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
void sse_encode_opt_list_prim_u_8_strict(
|
|
|
|
Uint8List? self, SseSerializer serializer);
|
2024-02-07 00:20:06 +08:00
|
|
|
|
|
|
|
@protected
|
|
|
|
void sse_encode_record_string_string(
|
|
|
|
(String, String) self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_rust_http_response(
|
|
|
|
RustHttpResponse self, SseSerializer serializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
void sse_encode_u_16(int self, SseSerializer serializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_u_64(int self, SseSerializer serializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
void sse_encode_u_8(int self, SseSerializer serializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
void sse_encode_unit(void self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_usize(int self, SseSerializer serializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_bool(bool self, SseSerializer serializer);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Section: wire_class
|
|
|
|
|
|
|
|
class RustLibWire implements BaseWire {
|
|
|
|
RustLibWire.fromExternalLibrary(ExternalLibrary lib);
|
2024-02-07 19:32:36 +08:00
|
|
|
|
|
|
|
void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
|
|
dynamic ptr) =>
|
|
|
|
wasmModule
|
|
|
|
.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
|
|
ptr);
|
|
|
|
|
|
|
|
void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
|
|
dynamic ptr) =>
|
|
|
|
wasmModule
|
|
|
|
.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
|
|
ptr);
|
2024-02-06 20:19:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@JS('wasm_bindgen')
|
|
|
|
external RustLibWasmModule get wasmModule;
|
|
|
|
|
|
|
|
@JS()
|
|
|
|
@anonymous
|
|
|
|
class RustLibWasmModule implements WasmModule {
|
|
|
|
@override
|
|
|
|
external Object /* Promise */ call([String? moduleName]);
|
|
|
|
|
|
|
|
@override
|
|
|
|
external RustLibWasmModule bind(dynamic thisArg, String moduleName);
|
2024-02-07 19:32:36 +08:00
|
|
|
|
|
|
|
external void
|
|
|
|
rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
|
|
dynamic ptr);
|
|
|
|
|
|
|
|
external void
|
|
|
|
rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
|
|
dynamic ptr);
|
2024-02-06 20:19:53 +08:00
|
|
|
}
|