mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 18:13:41 +08:00
293 lines
9.0 KiB
Dart
293 lines
9.0 KiB
Dart
// This file is automatically generated, so please do not edit it.
|
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25.
|
|
|
|
// 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/http_api.dart';
|
|
import 'api/process_api.dart';
|
|
import 'dart:async';
|
|
import 'dart:convert';
|
|
import 'dart:ffi' as ffi;
|
|
import 'frb_generated.dart';
|
|
import 'http_package.dart';
|
|
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated_io.dart';
|
|
|
|
abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|
RustLibApiImplPlatform({
|
|
required super.handler,
|
|
required super.wire,
|
|
required super.generalizedFrbRustBinding,
|
|
required super.portManager,
|
|
});
|
|
|
|
CrossPlatformFinalizerArg
|
|
get rust_arc_decrement_strong_count_ReqwestVersionPtr => wire
|
|
._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersionPtr;
|
|
|
|
@protected
|
|
AnyhowException dco_decode_AnyhowException(dynamic raw);
|
|
|
|
@protected
|
|
ReqwestVersion
|
|
dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
dynamic raw);
|
|
|
|
@protected
|
|
Map<String, String> dco_decode_Map_String_String(dynamic raw);
|
|
|
|
@protected
|
|
ReqwestVersion
|
|
dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
dynamic raw);
|
|
|
|
@protected
|
|
String dco_decode_String(dynamic raw);
|
|
|
|
@protected
|
|
int dco_decode_box_autoadd_u_64(dynamic raw);
|
|
|
|
@protected
|
|
int dco_decode_i_32(dynamic raw);
|
|
|
|
@protected
|
|
List<String> dco_decode_list_String(dynamic raw);
|
|
|
|
@protected
|
|
Uint8List dco_decode_list_prim_u_8_strict(dynamic raw);
|
|
|
|
@protected
|
|
List<(String, String)> dco_decode_list_record_string_string(dynamic raw);
|
|
|
|
@protected
|
|
MyMethod dco_decode_my_method(dynamic raw);
|
|
|
|
@protected
|
|
Map<String, String>? dco_decode_opt_Map_String_String(dynamic raw);
|
|
|
|
@protected
|
|
int? dco_decode_opt_box_autoadd_u_64(dynamic raw);
|
|
|
|
@protected
|
|
Uint8List? dco_decode_opt_list_prim_u_8_strict(dynamic raw);
|
|
|
|
@protected
|
|
(String, String) dco_decode_record_string_string(dynamic raw);
|
|
|
|
@protected
|
|
RustHttpResponse dco_decode_rust_http_response(dynamic raw);
|
|
|
|
@protected
|
|
int dco_decode_u_16(dynamic raw);
|
|
|
|
@protected
|
|
int dco_decode_u_64(dynamic raw);
|
|
|
|
@protected
|
|
int dco_decode_u_8(dynamic raw);
|
|
|
|
@protected
|
|
void dco_decode_unit(dynamic raw);
|
|
|
|
@protected
|
|
int dco_decode_usize(dynamic raw);
|
|
|
|
@protected
|
|
AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
ReqwestVersion
|
|
sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
SseDeserializer deserializer);
|
|
|
|
@protected
|
|
Map<String, String> sse_decode_Map_String_String(
|
|
SseDeserializer deserializer);
|
|
|
|
@protected
|
|
ReqwestVersion
|
|
sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
SseDeserializer deserializer);
|
|
|
|
@protected
|
|
String sse_decode_String(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
int sse_decode_box_autoadd_u_64(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
int sse_decode_i_32(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
List<String> sse_decode_list_String(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
List<(String, String)> sse_decode_list_record_string_string(
|
|
SseDeserializer deserializer);
|
|
|
|
@protected
|
|
MyMethod sse_decode_my_method(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
Map<String, String>? sse_decode_opt_Map_String_String(
|
|
SseDeserializer deserializer);
|
|
|
|
@protected
|
|
int? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
Uint8List? sse_decode_opt_list_prim_u_8_strict(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
(String, String) sse_decode_record_string_string(
|
|
SseDeserializer deserializer);
|
|
|
|
@protected
|
|
RustHttpResponse sse_decode_rust_http_response(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
int sse_decode_u_16(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
int sse_decode_u_64(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
int sse_decode_u_8(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
void sse_decode_unit(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
int sse_decode_usize(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
bool sse_decode_bool(SseDeserializer deserializer);
|
|
|
|
@protected
|
|
void sse_encode_AnyhowException(
|
|
AnyhowException self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void
|
|
sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
ReqwestVersion self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_Map_String_String(
|
|
Map<String, String> self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void
|
|
sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
ReqwestVersion self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_String(String self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_i_32(int self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_list_String(List<String> self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_list_prim_u_8_strict(
|
|
Uint8List self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_list_record_string_string(
|
|
List<(String, String)> self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_my_method(MyMethod self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_opt_Map_String_String(
|
|
Map<String, String>? self, SseSerializer serializer);
|
|
|
|
@protected
|
|
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);
|
|
|
|
@protected
|
|
void sse_encode_record_string_string(
|
|
(String, String) self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_rust_http_response(
|
|
RustHttpResponse self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_u_16(int self, SseSerializer serializer);
|
|
|
|
@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);
|
|
|
|
@protected
|
|
void sse_encode_usize(int self, SseSerializer serializer);
|
|
|
|
@protected
|
|
void sse_encode_bool(bool self, SseSerializer serializer);
|
|
}
|
|
|
|
// Section: wire_class
|
|
|
|
class RustLibWire implements BaseWire {
|
|
factory RustLibWire.fromExternalLibrary(ExternalLibrary lib) =>
|
|
RustLibWire(lib.ffiDynamicLibrary);
|
|
|
|
/// Holds the symbol lookup function.
|
|
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
|
|
_lookup;
|
|
|
|
/// The symbols are looked up in [dynamicLibrary].
|
|
RustLibWire(ffi.DynamicLibrary dynamicLibrary)
|
|
: _lookup = dynamicLibrary.lookup;
|
|
|
|
void
|
|
rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
ffi.Pointer<ffi.Void> ptr,
|
|
) {
|
|
return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
ptr,
|
|
);
|
|
}
|
|
|
|
late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersionPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>>(
|
|
'frbgen_starcitizen_doctor_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion');
|
|
late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion =
|
|
_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersionPtr
|
|
.asFunction<void Function(ffi.Pointer<ffi.Void>)>();
|
|
|
|
void
|
|
rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
ffi.Pointer<ffi.Void> ptr,
|
|
) {
|
|
return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
ptr,
|
|
);
|
|
}
|
|
|
|
late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersionPtr =
|
|
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>>(
|
|
'frbgen_starcitizen_doctor_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion');
|
|
late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion =
|
|
_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersionPtr
|
|
.asFunction<void Function(ffi.Pointer<ffi.Void>)>();
|
|
}
|