mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 06:33:43 +08:00
upgrade: flutter_rust_bridge
@ 2.0.0-dev.27.
This commit is contained in:
parent
00e5f7545b
commit
430455c2da
@ -1,5 +1,5 @@
|
|||||||
// This file is automatically generated, so please do not edit it.
|
// This file is automatically generated, so please do not edit it.
|
||||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.
|
||||||
|
|
||||||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
||||||
|
|
||||||
@ -27,25 +27,6 @@ Future<RustHttpResponse> fetch(
|
|||||||
Future<List<String>> dnsLookupTxt({required String host, dynamic hint}) =>
|
Future<List<String>> dnsLookupTxt({required String host, dynamic hint}) =>
|
||||||
RustLib.instance.api.dnsLookupTxt(host: host, hint: hint);
|
RustLib.instance.api.dnsLookupTxt(host: host, hint: hint);
|
||||||
|
|
||||||
// Rust type: RustOpaqueMoi<flutter_rust_bridge::for_generated::rust_async::RwLock<reqwest :: Version>>
|
|
||||||
@sealed
|
|
||||||
class ReqwestVersion extends RustOpaque {
|
|
||||||
ReqwestVersion.dcoDecode(List<dynamic> wire)
|
|
||||||
: super.dcoDecode(wire, _kStaticData);
|
|
||||||
|
|
||||||
ReqwestVersion.sseDecode(int ptr, int externalSizeOnNative)
|
|
||||||
: super.sseDecode(ptr, externalSizeOnNative, _kStaticData);
|
|
||||||
|
|
||||||
static final _kStaticData = RustArcStaticData(
|
|
||||||
rustArcIncrementStrongCount:
|
|
||||||
RustLib.instance.api.rust_arc_increment_strong_count_ReqwestVersion,
|
|
||||||
rustArcDecrementStrongCount:
|
|
||||||
RustLib.instance.api.rust_arc_decrement_strong_count_ReqwestVersion,
|
|
||||||
rustArcDecrementStrongCountPtr:
|
|
||||||
RustLib.instance.api.rust_arc_decrement_strong_count_ReqwestVersionPtr,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
enum MyMethod {
|
enum MyMethod {
|
||||||
options,
|
options,
|
||||||
gets,
|
gets,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// This file is automatically generated, so please do not edit it.
|
// This file is automatically generated, so please do not edit it.
|
||||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.
|
||||||
|
|
||||||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
||||||
|
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
// This file is automatically generated, so please do not edit it.
|
|
||||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.24.
|
|
||||||
|
|
||||||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
|
||||||
|
|
||||||
import 'frb_generated.dart';
|
|
||||||
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
|
|
||||||
import 'package:freezed_annotation/freezed_annotation.dart' hide protected;
|
|
||||||
part 'downloader.freezed.dart';
|
|
||||||
|
|
||||||
class DownloadCallbackData {
|
|
||||||
final String id;
|
|
||||||
final int total;
|
|
||||||
final int progress;
|
|
||||||
final int speed;
|
|
||||||
final MyDownloaderStatus status;
|
|
||||||
|
|
||||||
const DownloadCallbackData({
|
|
||||||
required this.id,
|
|
||||||
required this.total,
|
|
||||||
required this.progress,
|
|
||||||
required this.speed,
|
|
||||||
required this.status,
|
|
||||||
});
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
id.hashCode ^
|
|
||||||
total.hashCode ^
|
|
||||||
progress.hashCode ^
|
|
||||||
speed.hashCode ^
|
|
||||||
status.hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) =>
|
|
||||||
identical(this, other) ||
|
|
||||||
other is DownloadCallbackData &&
|
|
||||||
runtimeType == other.runtimeType &&
|
|
||||||
id == other.id &&
|
|
||||||
total == other.total &&
|
|
||||||
progress == other.progress &&
|
|
||||||
speed == other.speed &&
|
|
||||||
status == other.status;
|
|
||||||
}
|
|
||||||
|
|
||||||
@freezed
|
|
||||||
sealed class MyDownloaderStatus with _$MyDownloaderStatus {
|
|
||||||
const factory MyDownloaderStatus.noStart() = MyDownloaderStatus_NoStart;
|
|
||||||
const factory MyDownloaderStatus.running() = MyDownloaderStatus_Running;
|
|
||||||
const factory MyDownloaderStatus.pending(
|
|
||||||
MyNetworkItemPendingType field0,
|
|
||||||
) = MyDownloaderStatus_Pending;
|
|
||||||
const factory MyDownloaderStatus.error(
|
|
||||||
String field0,
|
|
||||||
) = MyDownloaderStatus_Error;
|
|
||||||
const factory MyDownloaderStatus.finished() = MyDownloaderStatus_Finished;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum MyNetworkItemPendingType {
|
|
||||||
queueUp,
|
|
||||||
starting,
|
|
||||||
stopping,
|
|
||||||
initializing,
|
|
||||||
}
|
|
@ -1,778 +0,0 @@
|
|||||||
// coverage:ignore-file
|
|
||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
// ignore_for_file: type=lint
|
|
||||||
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
|
|
||||||
|
|
||||||
part of 'downloader.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// FreezedGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
T _$identity<T>(T value) => value;
|
|
||||||
|
|
||||||
final _privateConstructorUsedError = UnsupportedError(
|
|
||||||
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
mixin _$MyDownloaderStatus {
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() noStart,
|
|
||||||
required TResult Function() running,
|
|
||||||
required TResult Function(MyNetworkItemPendingType field0) pending,
|
|
||||||
required TResult Function(String field0) error,
|
|
||||||
required TResult Function() finished,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? noStart,
|
|
||||||
TResult? Function()? running,
|
|
||||||
TResult? Function(MyNetworkItemPendingType field0)? pending,
|
|
||||||
TResult? Function(String field0)? error,
|
|
||||||
TResult? Function()? finished,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? noStart,
|
|
||||||
TResult Function()? running,
|
|
||||||
TResult Function(MyNetworkItemPendingType field0)? pending,
|
|
||||||
TResult Function(String field0)? error,
|
|
||||||
TResult Function()? finished,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(MyDownloaderStatus_NoStart value) noStart,
|
|
||||||
required TResult Function(MyDownloaderStatus_Running value) running,
|
|
||||||
required TResult Function(MyDownloaderStatus_Pending value) pending,
|
|
||||||
required TResult Function(MyDownloaderStatus_Error value) error,
|
|
||||||
required TResult Function(MyDownloaderStatus_Finished value) finished,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(MyDownloaderStatus_NoStart value)? noStart,
|
|
||||||
TResult? Function(MyDownloaderStatus_Running value)? running,
|
|
||||||
TResult? Function(MyDownloaderStatus_Pending value)? pending,
|
|
||||||
TResult? Function(MyDownloaderStatus_Error value)? error,
|
|
||||||
TResult? Function(MyDownloaderStatus_Finished value)? finished,
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(MyDownloaderStatus_NoStart value)? noStart,
|
|
||||||
TResult Function(MyDownloaderStatus_Running value)? running,
|
|
||||||
TResult Function(MyDownloaderStatus_Pending value)? pending,
|
|
||||||
TResult Function(MyDownloaderStatus_Error value)? error,
|
|
||||||
TResult Function(MyDownloaderStatus_Finished value)? finished,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) =>
|
|
||||||
throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class $MyDownloaderStatusCopyWith<$Res> {
|
|
||||||
factory $MyDownloaderStatusCopyWith(
|
|
||||||
MyDownloaderStatus value, $Res Function(MyDownloaderStatus) then) =
|
|
||||||
_$MyDownloaderStatusCopyWithImpl<$Res, MyDownloaderStatus>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class _$MyDownloaderStatusCopyWithImpl<$Res, $Val extends MyDownloaderStatus>
|
|
||||||
implements $MyDownloaderStatusCopyWith<$Res> {
|
|
||||||
_$MyDownloaderStatusCopyWithImpl(this._value, this._then);
|
|
||||||
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Val _value;
|
|
||||||
// ignore: unused_field
|
|
||||||
final $Res Function($Val) _then;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$MyDownloaderStatus_NoStartImplCopyWith<$Res> {
|
|
||||||
factory _$$MyDownloaderStatus_NoStartImplCopyWith(
|
|
||||||
_$MyDownloaderStatus_NoStartImpl value,
|
|
||||||
$Res Function(_$MyDownloaderStatus_NoStartImpl) then) =
|
|
||||||
__$$MyDownloaderStatus_NoStartImplCopyWithImpl<$Res>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$MyDownloaderStatus_NoStartImplCopyWithImpl<$Res>
|
|
||||||
extends _$MyDownloaderStatusCopyWithImpl<$Res,
|
|
||||||
_$MyDownloaderStatus_NoStartImpl>
|
|
||||||
implements _$$MyDownloaderStatus_NoStartImplCopyWith<$Res> {
|
|
||||||
__$$MyDownloaderStatus_NoStartImplCopyWithImpl(
|
|
||||||
_$MyDownloaderStatus_NoStartImpl _value,
|
|
||||||
$Res Function(_$MyDownloaderStatus_NoStartImpl) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$MyDownloaderStatus_NoStartImpl implements MyDownloaderStatus_NoStart {
|
|
||||||
const _$MyDownloaderStatus_NoStartImpl();
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'MyDownloaderStatus.noStart()';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$MyDownloaderStatus_NoStartImpl);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => runtimeType.hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() noStart,
|
|
||||||
required TResult Function() running,
|
|
||||||
required TResult Function(MyNetworkItemPendingType field0) pending,
|
|
||||||
required TResult Function(String field0) error,
|
|
||||||
required TResult Function() finished,
|
|
||||||
}) {
|
|
||||||
return noStart();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? noStart,
|
|
||||||
TResult? Function()? running,
|
|
||||||
TResult? Function(MyNetworkItemPendingType field0)? pending,
|
|
||||||
TResult? Function(String field0)? error,
|
|
||||||
TResult? Function()? finished,
|
|
||||||
}) {
|
|
||||||
return noStart?.call();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? noStart,
|
|
||||||
TResult Function()? running,
|
|
||||||
TResult Function(MyNetworkItemPendingType field0)? pending,
|
|
||||||
TResult Function(String field0)? error,
|
|
||||||
TResult Function()? finished,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (noStart != null) {
|
|
||||||
return noStart();
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(MyDownloaderStatus_NoStart value) noStart,
|
|
||||||
required TResult Function(MyDownloaderStatus_Running value) running,
|
|
||||||
required TResult Function(MyDownloaderStatus_Pending value) pending,
|
|
||||||
required TResult Function(MyDownloaderStatus_Error value) error,
|
|
||||||
required TResult Function(MyDownloaderStatus_Finished value) finished,
|
|
||||||
}) {
|
|
||||||
return noStart(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(MyDownloaderStatus_NoStart value)? noStart,
|
|
||||||
TResult? Function(MyDownloaderStatus_Running value)? running,
|
|
||||||
TResult? Function(MyDownloaderStatus_Pending value)? pending,
|
|
||||||
TResult? Function(MyDownloaderStatus_Error value)? error,
|
|
||||||
TResult? Function(MyDownloaderStatus_Finished value)? finished,
|
|
||||||
}) {
|
|
||||||
return noStart?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(MyDownloaderStatus_NoStart value)? noStart,
|
|
||||||
TResult Function(MyDownloaderStatus_Running value)? running,
|
|
||||||
TResult Function(MyDownloaderStatus_Pending value)? pending,
|
|
||||||
TResult Function(MyDownloaderStatus_Error value)? error,
|
|
||||||
TResult Function(MyDownloaderStatus_Finished value)? finished,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (noStart != null) {
|
|
||||||
return noStart(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class MyDownloaderStatus_NoStart implements MyDownloaderStatus {
|
|
||||||
const factory MyDownloaderStatus_NoStart() = _$MyDownloaderStatus_NoStartImpl;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$MyDownloaderStatus_RunningImplCopyWith<$Res> {
|
|
||||||
factory _$$MyDownloaderStatus_RunningImplCopyWith(
|
|
||||||
_$MyDownloaderStatus_RunningImpl value,
|
|
||||||
$Res Function(_$MyDownloaderStatus_RunningImpl) then) =
|
|
||||||
__$$MyDownloaderStatus_RunningImplCopyWithImpl<$Res>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$MyDownloaderStatus_RunningImplCopyWithImpl<$Res>
|
|
||||||
extends _$MyDownloaderStatusCopyWithImpl<$Res,
|
|
||||||
_$MyDownloaderStatus_RunningImpl>
|
|
||||||
implements _$$MyDownloaderStatus_RunningImplCopyWith<$Res> {
|
|
||||||
__$$MyDownloaderStatus_RunningImplCopyWithImpl(
|
|
||||||
_$MyDownloaderStatus_RunningImpl _value,
|
|
||||||
$Res Function(_$MyDownloaderStatus_RunningImpl) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$MyDownloaderStatus_RunningImpl implements MyDownloaderStatus_Running {
|
|
||||||
const _$MyDownloaderStatus_RunningImpl();
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'MyDownloaderStatus.running()';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$MyDownloaderStatus_RunningImpl);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => runtimeType.hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() noStart,
|
|
||||||
required TResult Function() running,
|
|
||||||
required TResult Function(MyNetworkItemPendingType field0) pending,
|
|
||||||
required TResult Function(String field0) error,
|
|
||||||
required TResult Function() finished,
|
|
||||||
}) {
|
|
||||||
return running();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? noStart,
|
|
||||||
TResult? Function()? running,
|
|
||||||
TResult? Function(MyNetworkItemPendingType field0)? pending,
|
|
||||||
TResult? Function(String field0)? error,
|
|
||||||
TResult? Function()? finished,
|
|
||||||
}) {
|
|
||||||
return running?.call();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? noStart,
|
|
||||||
TResult Function()? running,
|
|
||||||
TResult Function(MyNetworkItemPendingType field0)? pending,
|
|
||||||
TResult Function(String field0)? error,
|
|
||||||
TResult Function()? finished,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (running != null) {
|
|
||||||
return running();
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(MyDownloaderStatus_NoStart value) noStart,
|
|
||||||
required TResult Function(MyDownloaderStatus_Running value) running,
|
|
||||||
required TResult Function(MyDownloaderStatus_Pending value) pending,
|
|
||||||
required TResult Function(MyDownloaderStatus_Error value) error,
|
|
||||||
required TResult Function(MyDownloaderStatus_Finished value) finished,
|
|
||||||
}) {
|
|
||||||
return running(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(MyDownloaderStatus_NoStart value)? noStart,
|
|
||||||
TResult? Function(MyDownloaderStatus_Running value)? running,
|
|
||||||
TResult? Function(MyDownloaderStatus_Pending value)? pending,
|
|
||||||
TResult? Function(MyDownloaderStatus_Error value)? error,
|
|
||||||
TResult? Function(MyDownloaderStatus_Finished value)? finished,
|
|
||||||
}) {
|
|
||||||
return running?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(MyDownloaderStatus_NoStart value)? noStart,
|
|
||||||
TResult Function(MyDownloaderStatus_Running value)? running,
|
|
||||||
TResult Function(MyDownloaderStatus_Pending value)? pending,
|
|
||||||
TResult Function(MyDownloaderStatus_Error value)? error,
|
|
||||||
TResult Function(MyDownloaderStatus_Finished value)? finished,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (running != null) {
|
|
||||||
return running(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class MyDownloaderStatus_Running implements MyDownloaderStatus {
|
|
||||||
const factory MyDownloaderStatus_Running() = _$MyDownloaderStatus_RunningImpl;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$MyDownloaderStatus_PendingImplCopyWith<$Res> {
|
|
||||||
factory _$$MyDownloaderStatus_PendingImplCopyWith(
|
|
||||||
_$MyDownloaderStatus_PendingImpl value,
|
|
||||||
$Res Function(_$MyDownloaderStatus_PendingImpl) then) =
|
|
||||||
__$$MyDownloaderStatus_PendingImplCopyWithImpl<$Res>;
|
|
||||||
@useResult
|
|
||||||
$Res call({MyNetworkItemPendingType field0});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$MyDownloaderStatus_PendingImplCopyWithImpl<$Res>
|
|
||||||
extends _$MyDownloaderStatusCopyWithImpl<$Res,
|
|
||||||
_$MyDownloaderStatus_PendingImpl>
|
|
||||||
implements _$$MyDownloaderStatus_PendingImplCopyWith<$Res> {
|
|
||||||
__$$MyDownloaderStatus_PendingImplCopyWithImpl(
|
|
||||||
_$MyDownloaderStatus_PendingImpl _value,
|
|
||||||
$Res Function(_$MyDownloaderStatus_PendingImpl) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? field0 = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$MyDownloaderStatus_PendingImpl(
|
|
||||||
null == field0
|
|
||||||
? _value.field0
|
|
||||||
: field0 // ignore: cast_nullable_to_non_nullable
|
|
||||||
as MyNetworkItemPendingType,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$MyDownloaderStatus_PendingImpl implements MyDownloaderStatus_Pending {
|
|
||||||
const _$MyDownloaderStatus_PendingImpl(this.field0);
|
|
||||||
|
|
||||||
@override
|
|
||||||
final MyNetworkItemPendingType field0;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'MyDownloaderStatus.pending(field0: $field0)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$MyDownloaderStatus_PendingImpl &&
|
|
||||||
(identical(other.field0, field0) || other.field0 == field0));
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(runtimeType, field0);
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$MyDownloaderStatus_PendingImplCopyWith<_$MyDownloaderStatus_PendingImpl>
|
|
||||||
get copyWith => __$$MyDownloaderStatus_PendingImplCopyWithImpl<
|
|
||||||
_$MyDownloaderStatus_PendingImpl>(this, _$identity);
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() noStart,
|
|
||||||
required TResult Function() running,
|
|
||||||
required TResult Function(MyNetworkItemPendingType field0) pending,
|
|
||||||
required TResult Function(String field0) error,
|
|
||||||
required TResult Function() finished,
|
|
||||||
}) {
|
|
||||||
return pending(field0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? noStart,
|
|
||||||
TResult? Function()? running,
|
|
||||||
TResult? Function(MyNetworkItemPendingType field0)? pending,
|
|
||||||
TResult? Function(String field0)? error,
|
|
||||||
TResult? Function()? finished,
|
|
||||||
}) {
|
|
||||||
return pending?.call(field0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? noStart,
|
|
||||||
TResult Function()? running,
|
|
||||||
TResult Function(MyNetworkItemPendingType field0)? pending,
|
|
||||||
TResult Function(String field0)? error,
|
|
||||||
TResult Function()? finished,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (pending != null) {
|
|
||||||
return pending(field0);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(MyDownloaderStatus_NoStart value) noStart,
|
|
||||||
required TResult Function(MyDownloaderStatus_Running value) running,
|
|
||||||
required TResult Function(MyDownloaderStatus_Pending value) pending,
|
|
||||||
required TResult Function(MyDownloaderStatus_Error value) error,
|
|
||||||
required TResult Function(MyDownloaderStatus_Finished value) finished,
|
|
||||||
}) {
|
|
||||||
return pending(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(MyDownloaderStatus_NoStart value)? noStart,
|
|
||||||
TResult? Function(MyDownloaderStatus_Running value)? running,
|
|
||||||
TResult? Function(MyDownloaderStatus_Pending value)? pending,
|
|
||||||
TResult? Function(MyDownloaderStatus_Error value)? error,
|
|
||||||
TResult? Function(MyDownloaderStatus_Finished value)? finished,
|
|
||||||
}) {
|
|
||||||
return pending?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(MyDownloaderStatus_NoStart value)? noStart,
|
|
||||||
TResult Function(MyDownloaderStatus_Running value)? running,
|
|
||||||
TResult Function(MyDownloaderStatus_Pending value)? pending,
|
|
||||||
TResult Function(MyDownloaderStatus_Error value)? error,
|
|
||||||
TResult Function(MyDownloaderStatus_Finished value)? finished,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (pending != null) {
|
|
||||||
return pending(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class MyDownloaderStatus_Pending implements MyDownloaderStatus {
|
|
||||||
const factory MyDownloaderStatus_Pending(
|
|
||||||
final MyNetworkItemPendingType field0) = _$MyDownloaderStatus_PendingImpl;
|
|
||||||
|
|
||||||
MyNetworkItemPendingType get field0;
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$MyDownloaderStatus_PendingImplCopyWith<_$MyDownloaderStatus_PendingImpl>
|
|
||||||
get copyWith => throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$MyDownloaderStatus_ErrorImplCopyWith<$Res> {
|
|
||||||
factory _$$MyDownloaderStatus_ErrorImplCopyWith(
|
|
||||||
_$MyDownloaderStatus_ErrorImpl value,
|
|
||||||
$Res Function(_$MyDownloaderStatus_ErrorImpl) then) =
|
|
||||||
__$$MyDownloaderStatus_ErrorImplCopyWithImpl<$Res>;
|
|
||||||
@useResult
|
|
||||||
$Res call({String field0});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$MyDownloaderStatus_ErrorImplCopyWithImpl<$Res>
|
|
||||||
extends _$MyDownloaderStatusCopyWithImpl<$Res,
|
|
||||||
_$MyDownloaderStatus_ErrorImpl>
|
|
||||||
implements _$$MyDownloaderStatus_ErrorImplCopyWith<$Res> {
|
|
||||||
__$$MyDownloaderStatus_ErrorImplCopyWithImpl(
|
|
||||||
_$MyDownloaderStatus_ErrorImpl _value,
|
|
||||||
$Res Function(_$MyDownloaderStatus_ErrorImpl) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
@override
|
|
||||||
$Res call({
|
|
||||||
Object? field0 = null,
|
|
||||||
}) {
|
|
||||||
return _then(_$MyDownloaderStatus_ErrorImpl(
|
|
||||||
null == field0
|
|
||||||
? _value.field0
|
|
||||||
: field0 // ignore: cast_nullable_to_non_nullable
|
|
||||||
as String,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$MyDownloaderStatus_ErrorImpl implements MyDownloaderStatus_Error {
|
|
||||||
const _$MyDownloaderStatus_ErrorImpl(this.field0);
|
|
||||||
|
|
||||||
@override
|
|
||||||
final String field0;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'MyDownloaderStatus.error(field0: $field0)';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$MyDownloaderStatus_ErrorImpl &&
|
|
||||||
(identical(other.field0, field0) || other.field0 == field0));
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => Object.hash(runtimeType, field0);
|
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
@override
|
|
||||||
@pragma('vm:prefer-inline')
|
|
||||||
_$$MyDownloaderStatus_ErrorImplCopyWith<_$MyDownloaderStatus_ErrorImpl>
|
|
||||||
get copyWith => __$$MyDownloaderStatus_ErrorImplCopyWithImpl<
|
|
||||||
_$MyDownloaderStatus_ErrorImpl>(this, _$identity);
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() noStart,
|
|
||||||
required TResult Function() running,
|
|
||||||
required TResult Function(MyNetworkItemPendingType field0) pending,
|
|
||||||
required TResult Function(String field0) error,
|
|
||||||
required TResult Function() finished,
|
|
||||||
}) {
|
|
||||||
return error(field0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? noStart,
|
|
||||||
TResult? Function()? running,
|
|
||||||
TResult? Function(MyNetworkItemPendingType field0)? pending,
|
|
||||||
TResult? Function(String field0)? error,
|
|
||||||
TResult? Function()? finished,
|
|
||||||
}) {
|
|
||||||
return error?.call(field0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? noStart,
|
|
||||||
TResult Function()? running,
|
|
||||||
TResult Function(MyNetworkItemPendingType field0)? pending,
|
|
||||||
TResult Function(String field0)? error,
|
|
||||||
TResult Function()? finished,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (error != null) {
|
|
||||||
return error(field0);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(MyDownloaderStatus_NoStart value) noStart,
|
|
||||||
required TResult Function(MyDownloaderStatus_Running value) running,
|
|
||||||
required TResult Function(MyDownloaderStatus_Pending value) pending,
|
|
||||||
required TResult Function(MyDownloaderStatus_Error value) error,
|
|
||||||
required TResult Function(MyDownloaderStatus_Finished value) finished,
|
|
||||||
}) {
|
|
||||||
return error(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(MyDownloaderStatus_NoStart value)? noStart,
|
|
||||||
TResult? Function(MyDownloaderStatus_Running value)? running,
|
|
||||||
TResult? Function(MyDownloaderStatus_Pending value)? pending,
|
|
||||||
TResult? Function(MyDownloaderStatus_Error value)? error,
|
|
||||||
TResult? Function(MyDownloaderStatus_Finished value)? finished,
|
|
||||||
}) {
|
|
||||||
return error?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(MyDownloaderStatus_NoStart value)? noStart,
|
|
||||||
TResult Function(MyDownloaderStatus_Running value)? running,
|
|
||||||
TResult Function(MyDownloaderStatus_Pending value)? pending,
|
|
||||||
TResult Function(MyDownloaderStatus_Error value)? error,
|
|
||||||
TResult Function(MyDownloaderStatus_Finished value)? finished,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (error != null) {
|
|
||||||
return error(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class MyDownloaderStatus_Error implements MyDownloaderStatus {
|
|
||||||
const factory MyDownloaderStatus_Error(final String field0) =
|
|
||||||
_$MyDownloaderStatus_ErrorImpl;
|
|
||||||
|
|
||||||
String get field0;
|
|
||||||
@JsonKey(ignore: true)
|
|
||||||
_$$MyDownloaderStatus_ErrorImplCopyWith<_$MyDownloaderStatus_ErrorImpl>
|
|
||||||
get copyWith => throw _privateConstructorUsedError;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
abstract class _$$MyDownloaderStatus_FinishedImplCopyWith<$Res> {
|
|
||||||
factory _$$MyDownloaderStatus_FinishedImplCopyWith(
|
|
||||||
_$MyDownloaderStatus_FinishedImpl value,
|
|
||||||
$Res Function(_$MyDownloaderStatus_FinishedImpl) then) =
|
|
||||||
__$$MyDownloaderStatus_FinishedImplCopyWithImpl<$Res>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
class __$$MyDownloaderStatus_FinishedImplCopyWithImpl<$Res>
|
|
||||||
extends _$MyDownloaderStatusCopyWithImpl<$Res,
|
|
||||||
_$MyDownloaderStatus_FinishedImpl>
|
|
||||||
implements _$$MyDownloaderStatus_FinishedImplCopyWith<$Res> {
|
|
||||||
__$$MyDownloaderStatus_FinishedImplCopyWithImpl(
|
|
||||||
_$MyDownloaderStatus_FinishedImpl _value,
|
|
||||||
$Res Function(_$MyDownloaderStatus_FinishedImpl) _then)
|
|
||||||
: super(_value, _then);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @nodoc
|
|
||||||
|
|
||||||
class _$MyDownloaderStatus_FinishedImpl implements MyDownloaderStatus_Finished {
|
|
||||||
const _$MyDownloaderStatus_FinishedImpl();
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() {
|
|
||||||
return 'MyDownloaderStatus.finished()';
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) {
|
|
||||||
return identical(this, other) ||
|
|
||||||
(other.runtimeType == runtimeType &&
|
|
||||||
other is _$MyDownloaderStatus_FinishedImpl);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => runtimeType.hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult when<TResult extends Object?>({
|
|
||||||
required TResult Function() noStart,
|
|
||||||
required TResult Function() running,
|
|
||||||
required TResult Function(MyNetworkItemPendingType field0) pending,
|
|
||||||
required TResult Function(String field0) error,
|
|
||||||
required TResult Function() finished,
|
|
||||||
}) {
|
|
||||||
return finished();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? whenOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function()? noStart,
|
|
||||||
TResult? Function()? running,
|
|
||||||
TResult? Function(MyNetworkItemPendingType field0)? pending,
|
|
||||||
TResult? Function(String field0)? error,
|
|
||||||
TResult? Function()? finished,
|
|
||||||
}) {
|
|
||||||
return finished?.call();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeWhen<TResult extends Object?>({
|
|
||||||
TResult Function()? noStart,
|
|
||||||
TResult Function()? running,
|
|
||||||
TResult Function(MyNetworkItemPendingType field0)? pending,
|
|
||||||
TResult Function(String field0)? error,
|
|
||||||
TResult Function()? finished,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (finished != null) {
|
|
||||||
return finished();
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult map<TResult extends Object?>({
|
|
||||||
required TResult Function(MyDownloaderStatus_NoStart value) noStart,
|
|
||||||
required TResult Function(MyDownloaderStatus_Running value) running,
|
|
||||||
required TResult Function(MyDownloaderStatus_Pending value) pending,
|
|
||||||
required TResult Function(MyDownloaderStatus_Error value) error,
|
|
||||||
required TResult Function(MyDownloaderStatus_Finished value) finished,
|
|
||||||
}) {
|
|
||||||
return finished(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult? mapOrNull<TResult extends Object?>({
|
|
||||||
TResult? Function(MyDownloaderStatus_NoStart value)? noStart,
|
|
||||||
TResult? Function(MyDownloaderStatus_Running value)? running,
|
|
||||||
TResult? Function(MyDownloaderStatus_Pending value)? pending,
|
|
||||||
TResult? Function(MyDownloaderStatus_Error value)? error,
|
|
||||||
TResult? Function(MyDownloaderStatus_Finished value)? finished,
|
|
||||||
}) {
|
|
||||||
return finished?.call(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
@optionalTypeArgs
|
|
||||||
TResult maybeMap<TResult extends Object?>({
|
|
||||||
TResult Function(MyDownloaderStatus_NoStart value)? noStart,
|
|
||||||
TResult Function(MyDownloaderStatus_Running value)? running,
|
|
||||||
TResult Function(MyDownloaderStatus_Pending value)? pending,
|
|
||||||
TResult Function(MyDownloaderStatus_Error value)? error,
|
|
||||||
TResult Function(MyDownloaderStatus_Finished value)? finished,
|
|
||||||
required TResult orElse(),
|
|
||||||
}) {
|
|
||||||
if (finished != null) {
|
|
||||||
return finished(this);
|
|
||||||
}
|
|
||||||
return orElse();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract class MyDownloaderStatus_Finished implements MyDownloaderStatus {
|
|
||||||
const factory MyDownloaderStatus_Finished() =
|
|
||||||
_$MyDownloaderStatus_FinishedImpl;
|
|
||||||
}
|
|
@ -1,5 +1,5 @@
|
|||||||
// This file is automatically generated, so please do not edit it.
|
// This file is automatically generated, so please do not edit it.
|
||||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.
|
||||||
|
|
||||||
// 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
|
// 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
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
|
|||||||
kDefaultExternalLibraryLoaderConfig;
|
kDefaultExternalLibraryLoaderConfig;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get codegenVersion => '2.0.0-dev.25';
|
String get codegenVersion => '2.0.0-dev.27';
|
||||||
|
|
||||||
static const kDefaultExternalLibraryLoaderConfig =
|
static const kDefaultExternalLibraryLoaderConfig =
|
||||||
ExternalLibraryLoaderConfig(
|
ExternalLibraryLoaderConfig(
|
||||||
@ -81,15 +81,6 @@ abstract class RustLibApi extends BaseApi {
|
|||||||
required List<String> arguments,
|
required List<String> arguments,
|
||||||
required String workingDirectory,
|
required String workingDirectory,
|
||||||
dynamic hint});
|
dynamic hint});
|
||||||
|
|
||||||
RustArcIncrementStrongCountFnType
|
|
||||||
get rust_arc_increment_strong_count_ReqwestVersion;
|
|
||||||
|
|
||||||
RustArcDecrementStrongCountFnType
|
|
||||||
get rust_arc_decrement_strong_count_ReqwestVersion;
|
|
||||||
|
|
||||||
CrossPlatformFinalizerArg
|
|
||||||
get rust_arc_decrement_strong_count_ReqwestVersionPtr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||||
@ -215,28 +206,12 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
|||||||
argNames: ["executable", "arguments", "workingDirectory"],
|
argNames: ["executable", "arguments", "workingDirectory"],
|
||||||
);
|
);
|
||||||
|
|
||||||
RustArcIncrementStrongCountFnType
|
|
||||||
get rust_arc_increment_strong_count_ReqwestVersion => wire
|
|
||||||
.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion;
|
|
||||||
|
|
||||||
RustArcDecrementStrongCountFnType
|
|
||||||
get rust_arc_decrement_strong_count_ReqwestVersion => wire
|
|
||||||
.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion;
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
AnyhowException dco_decode_AnyhowException(dynamic raw) {
|
AnyhowException dco_decode_AnyhowException(dynamic raw) {
|
||||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||||
return AnyhowException(raw as String);
|
return AnyhowException(raw as String);
|
||||||
}
|
}
|
||||||
|
|
||||||
@protected
|
|
||||||
ReqwestVersion
|
|
||||||
dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
dynamic raw) {
|
|
||||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
|
||||||
return ReqwestVersion.dcoDecode(raw as List<dynamic>);
|
|
||||||
}
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
Map<String, String> dco_decode_Map_String_String(dynamic raw) {
|
Map<String, String> dco_decode_Map_String_String(dynamic raw) {
|
||||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||||
@ -244,14 +219,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
|||||||
.map((e) => MapEntry(e.$1, e.$2)));
|
.map((e) => MapEntry(e.$1, e.$2)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@protected
|
|
||||||
ReqwestVersion
|
|
||||||
dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
dynamic raw) {
|
|
||||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
|
||||||
return ReqwestVersion.dcoDecode(raw as List<dynamic>);
|
|
||||||
}
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
String dco_decode_String(dynamic raw) {
|
String dco_decode_String(dynamic raw) {
|
||||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||||
@ -288,6 +255,12 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
|||||||
return (raw as List<dynamic>).map(dco_decode_record_string_string).toList();
|
return (raw as List<dynamic>).map(dco_decode_record_string_string).toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@protected
|
||||||
|
MyHttpVersion dco_decode_my_http_version(dynamic raw) {
|
||||||
|
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||||
|
return MyHttpVersion.values[raw as int];
|
||||||
|
}
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
MyMethod dco_decode_my_method(dynamic raw) {
|
MyMethod dco_decode_my_method(dynamic raw) {
|
||||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||||
@ -336,9 +309,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
|||||||
headers: dco_decode_Map_String_String(arr[1]),
|
headers: dco_decode_Map_String_String(arr[1]),
|
||||||
url: dco_decode_String(arr[2]),
|
url: dco_decode_String(arr[2]),
|
||||||
contentLength: dco_decode_opt_box_autoadd_u_64(arr[3]),
|
contentLength: dco_decode_opt_box_autoadd_u_64(arr[3]),
|
||||||
version:
|
version: dco_decode_my_http_version(arr[4]),
|
||||||
dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
arr[4]),
|
|
||||||
remoteAddr: dco_decode_String(arr[5]),
|
remoteAddr: dco_decode_String(arr[5]),
|
||||||
data: dco_decode_opt_list_prim_u_8_strict(arr[6]),
|
data: dco_decode_opt_list_prim_u_8_strict(arr[6]),
|
||||||
);
|
);
|
||||||
@ -368,12 +339,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@protected
|
|
||||||
int dco_decode_usize(dynamic raw) {
|
|
||||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
|
||||||
return dcoDecodeI64OrU64(raw);
|
|
||||||
}
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer) {
|
AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer) {
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
@ -381,15 +346,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
|||||||
return AnyhowException(inner);
|
return AnyhowException(inner);
|
||||||
}
|
}
|
||||||
|
|
||||||
@protected
|
|
||||||
ReqwestVersion
|
|
||||||
sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
SseDeserializer deserializer) {
|
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
|
||||||
return ReqwestVersion.sseDecode(
|
|
||||||
sse_decode_usize(deserializer), sse_decode_i_32(deserializer));
|
|
||||||
}
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
Map<String, String> sse_decode_Map_String_String(
|
Map<String, String> sse_decode_Map_String_String(
|
||||||
SseDeserializer deserializer) {
|
SseDeserializer deserializer) {
|
||||||
@ -398,15 +354,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
|||||||
return Map.fromEntries(inner.map((e) => MapEntry(e.$1, e.$2)));
|
return Map.fromEntries(inner.map((e) => MapEntry(e.$1, e.$2)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@protected
|
|
||||||
ReqwestVersion
|
|
||||||
sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
SseDeserializer deserializer) {
|
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
|
||||||
return ReqwestVersion.sseDecode(
|
|
||||||
sse_decode_usize(deserializer), sse_decode_i_32(deserializer));
|
|
||||||
}
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
String sse_decode_String(SseDeserializer deserializer) {
|
String sse_decode_String(SseDeserializer deserializer) {
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
@ -458,6 +405,13 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
|||||||
return ans_;
|
return ans_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@protected
|
||||||
|
MyHttpVersion sse_decode_my_http_version(SseDeserializer deserializer) {
|
||||||
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
|
var inner = sse_decode_i_32(deserializer);
|
||||||
|
return MyHttpVersion.values[inner];
|
||||||
|
}
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
MyMethod sse_decode_my_method(SseDeserializer deserializer) {
|
MyMethod sse_decode_my_method(SseDeserializer deserializer) {
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
@ -515,9 +469,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
|||||||
var var_headers = sse_decode_Map_String_String(deserializer);
|
var var_headers = sse_decode_Map_String_String(deserializer);
|
||||||
var var_url = sse_decode_String(deserializer);
|
var var_url = sse_decode_String(deserializer);
|
||||||
var var_contentLength = sse_decode_opt_box_autoadd_u_64(deserializer);
|
var var_contentLength = sse_decode_opt_box_autoadd_u_64(deserializer);
|
||||||
var var_version =
|
var var_version = sse_decode_my_http_version(deserializer);
|
||||||
sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
deserializer);
|
|
||||||
var var_remoteAddr = sse_decode_String(deserializer);
|
var var_remoteAddr = sse_decode_String(deserializer);
|
||||||
var var_data = sse_decode_opt_list_prim_u_8_strict(deserializer);
|
var var_data = sse_decode_opt_list_prim_u_8_strict(deserializer);
|
||||||
return RustHttpResponse(
|
return RustHttpResponse(
|
||||||
@ -553,12 +505,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
|||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
}
|
}
|
||||||
|
|
||||||
@protected
|
|
||||||
int sse_decode_usize(SseDeserializer deserializer) {
|
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
|
||||||
return deserializer.buffer.getUint64();
|
|
||||||
}
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
bool sse_decode_bool(SseDeserializer deserializer) {
|
bool sse_decode_bool(SseDeserializer deserializer) {
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
@ -572,14 +518,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
|||||||
throw UnimplementedError('Unreachable ((');
|
throw UnimplementedError('Unreachable ((');
|
||||||
}
|
}
|
||||||
|
|
||||||
@protected
|
|
||||||
void
|
|
||||||
sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
ReqwestVersion self, SseSerializer serializer) {
|
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
|
||||||
sse_encode_usize(self.sseEncode(move: true), serializer);
|
|
||||||
}
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
void sse_encode_Map_String_String(
|
void sse_encode_Map_String_String(
|
||||||
Map<String, String> self, SseSerializer serializer) {
|
Map<String, String> self, SseSerializer serializer) {
|
||||||
@ -588,14 +526,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
|||||||
self.entries.map((e) => (e.key, e.value)).toList(), serializer);
|
self.entries.map((e) => (e.key, e.value)).toList(), serializer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@protected
|
|
||||||
void
|
|
||||||
sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
ReqwestVersion self, SseSerializer serializer) {
|
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
|
||||||
sse_encode_usize(self.sseEncode(move: null), serializer);
|
|
||||||
}
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
void sse_encode_String(String self, SseSerializer serializer) {
|
void sse_encode_String(String self, SseSerializer serializer) {
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
@ -641,6 +571,13 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@protected
|
||||||
|
void sse_encode_my_http_version(
|
||||||
|
MyHttpVersion self, SseSerializer serializer) {
|
||||||
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
|
sse_encode_i_32(self.index, serializer);
|
||||||
|
}
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
void sse_encode_my_method(MyMethod self, SseSerializer serializer) {
|
void sse_encode_my_method(MyMethod self, SseSerializer serializer) {
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
@ -695,8 +632,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
|||||||
sse_encode_Map_String_String(self.headers, serializer);
|
sse_encode_Map_String_String(self.headers, serializer);
|
||||||
sse_encode_String(self.url, serializer);
|
sse_encode_String(self.url, serializer);
|
||||||
sse_encode_opt_box_autoadd_u_64(self.contentLength, serializer);
|
sse_encode_opt_box_autoadd_u_64(self.contentLength, serializer);
|
||||||
sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
sse_encode_my_http_version(self.version, serializer);
|
||||||
self.version, serializer);
|
|
||||||
sse_encode_String(self.remoteAddr, serializer);
|
sse_encode_String(self.remoteAddr, serializer);
|
||||||
sse_encode_opt_list_prim_u_8_strict(self.data, serializer);
|
sse_encode_opt_list_prim_u_8_strict(self.data, serializer);
|
||||||
}
|
}
|
||||||
@ -724,12 +660,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
|||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
}
|
}
|
||||||
|
|
||||||
@protected
|
|
||||||
void sse_encode_usize(int self, SseSerializer serializer) {
|
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
|
||||||
serializer.buffer.putUint64(self);
|
|
||||||
}
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
void sse_encode_bool(bool self, SseSerializer serializer) {
|
void sse_encode_bool(bool self, SseSerializer serializer) {
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// This file is automatically generated, so please do not edit it.
|
// This file is automatically generated, so please do not edit it.
|
||||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.
|
||||||
|
|
||||||
// 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
|
// 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
|
||||||
|
|
||||||
@ -20,26 +20,12 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
required super.portManager,
|
required super.portManager,
|
||||||
});
|
});
|
||||||
|
|
||||||
CrossPlatformFinalizerArg
|
|
||||||
get rust_arc_decrement_strong_count_ReqwestVersionPtr => wire
|
|
||||||
._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersionPtr;
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
AnyhowException dco_decode_AnyhowException(dynamic raw);
|
AnyhowException dco_decode_AnyhowException(dynamic raw);
|
||||||
|
|
||||||
@protected
|
|
||||||
ReqwestVersion
|
|
||||||
dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
dynamic raw);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
Map<String, String> dco_decode_Map_String_String(dynamic raw);
|
Map<String, String> dco_decode_Map_String_String(dynamic raw);
|
||||||
|
|
||||||
@protected
|
|
||||||
ReqwestVersion
|
|
||||||
dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
dynamic raw);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
String dco_decode_String(dynamic raw);
|
String dco_decode_String(dynamic raw);
|
||||||
|
|
||||||
@ -58,6 +44,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
@protected
|
@protected
|
||||||
List<(String, String)> dco_decode_list_record_string_string(dynamic raw);
|
List<(String, String)> dco_decode_list_record_string_string(dynamic raw);
|
||||||
|
|
||||||
|
@protected
|
||||||
|
MyHttpVersion dco_decode_my_http_version(dynamic raw);
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
MyMethod dco_decode_my_method(dynamic raw);
|
MyMethod dco_decode_my_method(dynamic raw);
|
||||||
|
|
||||||
@ -88,26 +77,13 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
@protected
|
@protected
|
||||||
void dco_decode_unit(dynamic raw);
|
void dco_decode_unit(dynamic raw);
|
||||||
|
|
||||||
@protected
|
|
||||||
int dco_decode_usize(dynamic raw);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer);
|
AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer);
|
||||||
|
|
||||||
@protected
|
|
||||||
ReqwestVersion
|
|
||||||
sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
SseDeserializer deserializer);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
Map<String, String> sse_decode_Map_String_String(
|
Map<String, String> sse_decode_Map_String_String(
|
||||||
SseDeserializer deserializer);
|
SseDeserializer deserializer);
|
||||||
|
|
||||||
@protected
|
|
||||||
ReqwestVersion
|
|
||||||
sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
SseDeserializer deserializer);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
String sse_decode_String(SseDeserializer deserializer);
|
String sse_decode_String(SseDeserializer deserializer);
|
||||||
|
|
||||||
@ -127,6 +103,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
List<(String, String)> sse_decode_list_record_string_string(
|
List<(String, String)> sse_decode_list_record_string_string(
|
||||||
SseDeserializer deserializer);
|
SseDeserializer deserializer);
|
||||||
|
|
||||||
|
@protected
|
||||||
|
MyHttpVersion sse_decode_my_http_version(SseDeserializer deserializer);
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
MyMethod sse_decode_my_method(SseDeserializer deserializer);
|
MyMethod sse_decode_my_method(SseDeserializer deserializer);
|
||||||
|
|
||||||
@ -159,9 +138,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
@protected
|
@protected
|
||||||
void sse_decode_unit(SseDeserializer deserializer);
|
void sse_decode_unit(SseDeserializer deserializer);
|
||||||
|
|
||||||
@protected
|
|
||||||
int sse_decode_usize(SseDeserializer deserializer);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
bool sse_decode_bool(SseDeserializer deserializer);
|
bool sse_decode_bool(SseDeserializer deserializer);
|
||||||
|
|
||||||
@ -169,20 +145,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
void sse_encode_AnyhowException(
|
void sse_encode_AnyhowException(
|
||||||
AnyhowException self, SseSerializer serializer);
|
AnyhowException self, SseSerializer serializer);
|
||||||
|
|
||||||
@protected
|
|
||||||
void
|
|
||||||
sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
ReqwestVersion self, SseSerializer serializer);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
void sse_encode_Map_String_String(
|
void sse_encode_Map_String_String(
|
||||||
Map<String, String> self, SseSerializer serializer);
|
Map<String, String> self, SseSerializer serializer);
|
||||||
|
|
||||||
@protected
|
|
||||||
void
|
|
||||||
sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
ReqwestVersion self, SseSerializer serializer);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
void sse_encode_String(String self, SseSerializer serializer);
|
void sse_encode_String(String self, SseSerializer serializer);
|
||||||
|
|
||||||
@ -203,6 +169,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
void sse_encode_list_record_string_string(
|
void sse_encode_list_record_string_string(
|
||||||
List<(String, String)> self, SseSerializer serializer);
|
List<(String, String)> self, SseSerializer serializer);
|
||||||
|
|
||||||
|
@protected
|
||||||
|
void sse_encode_my_http_version(MyHttpVersion self, SseSerializer serializer);
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
void sse_encode_my_method(MyMethod self, SseSerializer serializer);
|
void sse_encode_my_method(MyMethod self, SseSerializer serializer);
|
||||||
|
|
||||||
@ -237,9 +206,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
@protected
|
@protected
|
||||||
void sse_encode_unit(void self, SseSerializer serializer);
|
void sse_encode_unit(void self, SseSerializer serializer);
|
||||||
|
|
||||||
@protected
|
|
||||||
void sse_encode_usize(int self, SseSerializer serializer);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
void sse_encode_bool(bool self, SseSerializer serializer);
|
void sse_encode_bool(bool self, SseSerializer serializer);
|
||||||
}
|
}
|
||||||
@ -257,36 +223,4 @@ class RustLibWire implements BaseWire {
|
|||||||
/// The symbols are looked up in [dynamicLibrary].
|
/// The symbols are looked up in [dynamicLibrary].
|
||||||
RustLibWire(ffi.DynamicLibrary dynamicLibrary)
|
RustLibWire(ffi.DynamicLibrary dynamicLibrary)
|
||||||
: _lookup = dynamicLibrary.lookup;
|
: _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>)>();
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// This file is automatically generated, so please do not edit it.
|
// This file is automatically generated, so please do not edit it.
|
||||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.
|
||||||
|
|
||||||
// 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
|
// 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
|
||||||
|
|
||||||
@ -19,26 +19,12 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
required super.portManager,
|
required super.portManager,
|
||||||
});
|
});
|
||||||
|
|
||||||
CrossPlatformFinalizerArg
|
|
||||||
get rust_arc_decrement_strong_count_ReqwestVersionPtr => wire
|
|
||||||
.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion;
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
AnyhowException dco_decode_AnyhowException(dynamic raw);
|
AnyhowException dco_decode_AnyhowException(dynamic raw);
|
||||||
|
|
||||||
@protected
|
|
||||||
ReqwestVersion
|
|
||||||
dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
dynamic raw);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
Map<String, String> dco_decode_Map_String_String(dynamic raw);
|
Map<String, String> dco_decode_Map_String_String(dynamic raw);
|
||||||
|
|
||||||
@protected
|
|
||||||
ReqwestVersion
|
|
||||||
dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
dynamic raw);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
String dco_decode_String(dynamic raw);
|
String dco_decode_String(dynamic raw);
|
||||||
|
|
||||||
@ -57,6 +43,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
@protected
|
@protected
|
||||||
List<(String, String)> dco_decode_list_record_string_string(dynamic raw);
|
List<(String, String)> dco_decode_list_record_string_string(dynamic raw);
|
||||||
|
|
||||||
|
@protected
|
||||||
|
MyHttpVersion dco_decode_my_http_version(dynamic raw);
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
MyMethod dco_decode_my_method(dynamic raw);
|
MyMethod dco_decode_my_method(dynamic raw);
|
||||||
|
|
||||||
@ -87,26 +76,13 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
@protected
|
@protected
|
||||||
void dco_decode_unit(dynamic raw);
|
void dco_decode_unit(dynamic raw);
|
||||||
|
|
||||||
@protected
|
|
||||||
int dco_decode_usize(dynamic raw);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer);
|
AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer);
|
||||||
|
|
||||||
@protected
|
|
||||||
ReqwestVersion
|
|
||||||
sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
SseDeserializer deserializer);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
Map<String, String> sse_decode_Map_String_String(
|
Map<String, String> sse_decode_Map_String_String(
|
||||||
SseDeserializer deserializer);
|
SseDeserializer deserializer);
|
||||||
|
|
||||||
@protected
|
|
||||||
ReqwestVersion
|
|
||||||
sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
SseDeserializer deserializer);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
String sse_decode_String(SseDeserializer deserializer);
|
String sse_decode_String(SseDeserializer deserializer);
|
||||||
|
|
||||||
@ -126,6 +102,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
List<(String, String)> sse_decode_list_record_string_string(
|
List<(String, String)> sse_decode_list_record_string_string(
|
||||||
SseDeserializer deserializer);
|
SseDeserializer deserializer);
|
||||||
|
|
||||||
|
@protected
|
||||||
|
MyHttpVersion sse_decode_my_http_version(SseDeserializer deserializer);
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
MyMethod sse_decode_my_method(SseDeserializer deserializer);
|
MyMethod sse_decode_my_method(SseDeserializer deserializer);
|
||||||
|
|
||||||
@ -158,9 +137,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
@protected
|
@protected
|
||||||
void sse_decode_unit(SseDeserializer deserializer);
|
void sse_decode_unit(SseDeserializer deserializer);
|
||||||
|
|
||||||
@protected
|
|
||||||
int sse_decode_usize(SseDeserializer deserializer);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
bool sse_decode_bool(SseDeserializer deserializer);
|
bool sse_decode_bool(SseDeserializer deserializer);
|
||||||
|
|
||||||
@ -168,20 +144,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
void sse_encode_AnyhowException(
|
void sse_encode_AnyhowException(
|
||||||
AnyhowException self, SseSerializer serializer);
|
AnyhowException self, SseSerializer serializer);
|
||||||
|
|
||||||
@protected
|
|
||||||
void
|
|
||||||
sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
ReqwestVersion self, SseSerializer serializer);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
void sse_encode_Map_String_String(
|
void sse_encode_Map_String_String(
|
||||||
Map<String, String> self, SseSerializer serializer);
|
Map<String, String> self, SseSerializer serializer);
|
||||||
|
|
||||||
@protected
|
|
||||||
void
|
|
||||||
sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
ReqwestVersion self, SseSerializer serializer);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
void sse_encode_String(String self, SseSerializer serializer);
|
void sse_encode_String(String self, SseSerializer serializer);
|
||||||
|
|
||||||
@ -202,6 +168,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
void sse_encode_list_record_string_string(
|
void sse_encode_list_record_string_string(
|
||||||
List<(String, String)> self, SseSerializer serializer);
|
List<(String, String)> self, SseSerializer serializer);
|
||||||
|
|
||||||
|
@protected
|
||||||
|
void sse_encode_my_http_version(MyHttpVersion self, SseSerializer serializer);
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
void sse_encode_my_method(MyMethod self, SseSerializer serializer);
|
void sse_encode_my_method(MyMethod self, SseSerializer serializer);
|
||||||
|
|
||||||
@ -236,9 +205,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
@protected
|
@protected
|
||||||
void sse_encode_unit(void self, SseSerializer serializer);
|
void sse_encode_unit(void self, SseSerializer serializer);
|
||||||
|
|
||||||
@protected
|
|
||||||
void sse_encode_usize(int self, SseSerializer serializer);
|
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
void sse_encode_bool(bool self, SseSerializer serializer);
|
void sse_encode_bool(bool self, SseSerializer serializer);
|
||||||
}
|
}
|
||||||
@ -247,18 +213,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|||||||
|
|
||||||
class RustLibWire implements BaseWire {
|
class RustLibWire implements BaseWire {
|
||||||
RustLibWire.fromExternalLibrary(ExternalLibrary lib);
|
RustLibWire.fromExternalLibrary(ExternalLibrary lib);
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@JS('wasm_bindgen')
|
@JS('wasm_bindgen')
|
||||||
@ -272,12 +226,4 @@ class RustLibWasmModule implements WasmModule {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
external RustLibWasmModule bind(dynamic thisArg, String moduleName);
|
external RustLibWasmModule bind(dynamic thisArg, String moduleName);
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,25 @@
|
|||||||
// This file is automatically generated, so please do not edit it.
|
// This file is automatically generated, so please do not edit it.
|
||||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.
|
||||||
|
|
||||||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
||||||
|
|
||||||
import 'api/http_api.dart';
|
|
||||||
import 'frb_generated.dart';
|
import 'frb_generated.dart';
|
||||||
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
|
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
|
||||||
|
|
||||||
|
enum MyHttpVersion {
|
||||||
|
http09,
|
||||||
|
http10,
|
||||||
|
http11,
|
||||||
|
http2,
|
||||||
|
http3,
|
||||||
|
}
|
||||||
|
|
||||||
class RustHttpResponse {
|
class RustHttpResponse {
|
||||||
final int statusCode;
|
final int statusCode;
|
||||||
final Map<String, String> headers;
|
final Map<String, String> headers;
|
||||||
final String url;
|
final String url;
|
||||||
final int? contentLength;
|
final int? contentLength;
|
||||||
final ReqwestVersion version;
|
final MyHttpVersion version;
|
||||||
final String remoteAddr;
|
final String remoteAddr;
|
||||||
final Uint8List? data;
|
final Uint8List? data;
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ dependencies:
|
|||||||
flutter_tilt: ^2.0.10
|
flutter_tilt: ^2.0.10
|
||||||
card_swiper: ^3.0.1
|
card_swiper: ^3.0.1
|
||||||
ffi: ^2.1.0
|
ffi: ^2.1.0
|
||||||
flutter_rust_bridge: 2.0.0-dev.25
|
flutter_rust_bridge: ^2.0.0-dev.27
|
||||||
freezed_annotation: ^2.4.1
|
freezed_annotation: ^2.4.1
|
||||||
meta: ^1.9.1
|
meta: ^1.9.1
|
||||||
win32: ^5.0.9
|
win32: ^5.0.9
|
||||||
|
@ -11,7 +11,7 @@ strip = "debuginfo"
|
|||||||
crate-type = ["cdylib", "staticlib"]
|
crate-type = ["cdylib", "staticlib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
flutter_rust_bridge = "=2.0.0-dev.25"
|
flutter_rust_bridge = "=2.0.0-dev.27"
|
||||||
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros","process"] }
|
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros","process"] }
|
||||||
url = "2.5.0"
|
url = "2.5.0"
|
||||||
uuid = { version = "1.7.0", features = ["v4", "fast-rng", "macro-diagnostics"] }
|
uuid = { version = "1.7.0", features = ["v4", "fast-rng", "macro-diagnostics"] }
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
// This file is automatically generated, so please do not edit it.
|
// This file is automatically generated, so please do not edit it.
|
||||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.
|
||||||
|
|
||||||
// Section: imports
|
// Section: imports
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::api::http_api::*;
|
|
||||||
use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
|
use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
|
||||||
use flutter_rust_bridge::for_generated::transform_result_dco;
|
use flutter_rust_bridge::for_generated::transform_result_dco;
|
||||||
use flutter_rust_bridge::{Handler, IntoIntoDart};
|
use flutter_rust_bridge::{Handler, IntoIntoDart};
|
||||||
@ -12,17 +11,3 @@ use flutter_rust_bridge::{Handler, IntoIntoDart};
|
|||||||
// Section: boilerplate
|
// Section: boilerplate
|
||||||
|
|
||||||
flutter_rust_bridge::frb_generated_boilerplate_io!();
|
flutter_rust_bridge::frb_generated_boilerplate_io!();
|
||||||
|
|
||||||
#[no_mangle]
|
|
||||||
pub extern "C" fn frbgen_starcitizen_doctor_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
ptr: *const std::ffi::c_void,
|
|
||||||
) {
|
|
||||||
MoiArc::<flutter_rust_bridge::for_generated::rust_async::RwLock<reqwest :: Version>>::increment_strong_count(ptr as _);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[no_mangle]
|
|
||||||
pub extern "C" fn frbgen_starcitizen_doctor_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
ptr: *const std::ffi::c_void,
|
|
||||||
) {
|
|
||||||
MoiArc::<flutter_rust_bridge::for_generated::rust_async::RwLock<reqwest :: Version>>::decrement_strong_count(ptr as _);
|
|
||||||
}
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// This file is automatically generated, so please do not edit it.
|
// This file is automatically generated, so please do not edit it.
|
||||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.
|
||||||
|
|
||||||
#![allow(
|
#![allow(
|
||||||
non_camel_case_types,
|
non_camel_case_types,
|
||||||
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
// Section: imports
|
// Section: imports
|
||||||
|
|
||||||
use crate::api::http_api::*;
|
|
||||||
use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
|
use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
|
||||||
use flutter_rust_bridge::for_generated::transform_result_dco;
|
use flutter_rust_bridge::for_generated::transform_result_dco;
|
||||||
use flutter_rust_bridge::{Handler, IntoIntoDart};
|
use flutter_rust_bridge::{Handler, IntoIntoDart};
|
||||||
@ -31,7 +30,7 @@ flutter_rust_bridge::frb_generated_boilerplate!(
|
|||||||
default_rust_opaque = RustOpaqueMoi,
|
default_rust_opaque = RustOpaqueMoi,
|
||||||
default_rust_auto_opaque = RustAutoOpaqueMoi,
|
default_rust_auto_opaque = RustAutoOpaqueMoi,
|
||||||
);
|
);
|
||||||
const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.25";
|
const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.27";
|
||||||
|
|
||||||
// Section: executor
|
// Section: executor
|
||||||
|
|
||||||
@ -198,12 +197,6 @@ fn wire_start_process_impl(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Section: related_funcs
|
|
||||||
|
|
||||||
flutter_rust_bridge::frb_generated_moi_arc_impl_value!(
|
|
||||||
flutter_rust_bridge::for_generated::rust_async::RwLock<reqwest::Version>
|
|
||||||
);
|
|
||||||
|
|
||||||
// Section: dart2rust
|
// Section: dart2rust
|
||||||
|
|
||||||
impl SseDecode for flutter_rust_bridge::for_generated::anyhow::Error {
|
impl SseDecode for flutter_rust_bridge::for_generated::anyhow::Error {
|
||||||
@ -213,16 +206,6 @@ impl SseDecode for flutter_rust_bridge::for_generated::anyhow::Error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SseDecode for reqwest::Version {
|
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
|
||||||
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
|
|
||||||
let mut inner = <RustOpaqueMoi<
|
|
||||||
flutter_rust_bridge::for_generated::rust_async::RwLock<reqwest::Version>,
|
|
||||||
>>::sse_decode(deserializer);
|
|
||||||
return inner.rust_auto_opaque_decode_owned();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl SseDecode for std::collections::HashMap<String, String> {
|
impl SseDecode for std::collections::HashMap<String, String> {
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
|
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
|
||||||
@ -231,16 +214,6 @@ impl SseDecode for std::collections::HashMap<String, String> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SseDecode
|
|
||||||
for RustOpaqueMoi<flutter_rust_bridge::for_generated::rust_async::RwLock<reqwest::Version>>
|
|
||||||
{
|
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
|
||||||
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
|
|
||||||
let mut inner = <usize>::sse_decode(deserializer);
|
|
||||||
return decode_rust_opaque_moi(inner);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl SseDecode for String {
|
impl SseDecode for String {
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
|
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
|
||||||
@ -292,6 +265,21 @@ impl SseDecode for Vec<(String, String)> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl SseDecode for crate::http_package::MyHttpVersion {
|
||||||
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
|
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
|
||||||
|
let mut inner = <i32>::sse_decode(deserializer);
|
||||||
|
return match inner {
|
||||||
|
0 => crate::http_package::MyHttpVersion::HTTP_09,
|
||||||
|
1 => crate::http_package::MyHttpVersion::HTTP_10,
|
||||||
|
2 => crate::http_package::MyHttpVersion::HTTP_11,
|
||||||
|
3 => crate::http_package::MyHttpVersion::HTTP_2,
|
||||||
|
4 => crate::http_package::MyHttpVersion::HTTP_3,
|
||||||
|
_ => unreachable!("Invalid variant for MyHttpVersion: {}", inner),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl SseDecode for crate::api::http_api::MyMethod {
|
impl SseDecode for crate::api::http_api::MyMethod {
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
|
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
|
||||||
@ -362,7 +350,7 @@ impl SseDecode for crate::http_package::RustHttpResponse {
|
|||||||
let mut var_headers = <std::collections::HashMap<String, String>>::sse_decode(deserializer);
|
let mut var_headers = <std::collections::HashMap<String, String>>::sse_decode(deserializer);
|
||||||
let mut var_url = <String>::sse_decode(deserializer);
|
let mut var_url = <String>::sse_decode(deserializer);
|
||||||
let mut var_contentLength = <Option<u64>>::sse_decode(deserializer);
|
let mut var_contentLength = <Option<u64>>::sse_decode(deserializer);
|
||||||
let mut var_version = <reqwest::Version>::sse_decode(deserializer);
|
let mut var_version = <crate::http_package::MyHttpVersion>::sse_decode(deserializer);
|
||||||
let mut var_remoteAddr = <String>::sse_decode(deserializer);
|
let mut var_remoteAddr = <String>::sse_decode(deserializer);
|
||||||
let mut var_data = <Option<Vec<u8>>>::sse_decode(deserializer);
|
let mut var_data = <Option<Vec<u8>>>::sse_decode(deserializer);
|
||||||
return crate::http_package::RustHttpResponse {
|
return crate::http_package::RustHttpResponse {
|
||||||
@ -403,13 +391,6 @@ impl SseDecode for () {
|
|||||||
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {}
|
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SseDecode for usize {
|
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
|
||||||
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
|
|
||||||
deserializer.cursor.read_u64::<NativeEndian>().unwrap() as _
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl SseDecode for bool {
|
impl SseDecode for bool {
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
|
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
|
||||||
@ -448,34 +429,27 @@ fn pde_ffi_dispatcher_sync_impl(
|
|||||||
|
|
||||||
// Section: rust2dart
|
// Section: rust2dart
|
||||||
|
|
||||||
pub struct Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
reqwest::Version,
|
|
||||||
);
|
|
||||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||||
impl flutter_rust_bridge::IntoDart
|
impl flutter_rust_bridge::IntoDart for crate::http_package::MyHttpVersion {
|
||||||
for Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion
|
|
||||||
{
|
|
||||||
fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
|
fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
|
||||||
flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0)
|
match self {
|
||||||
.into_dart()
|
Self::HTTP_09 => 0.into_dart(),
|
||||||
|
Self::HTTP_10 => 1.into_dart(),
|
||||||
|
Self::HTTP_11 => 2.into_dart(),
|
||||||
|
Self::HTTP_2 => 3.into_dart(),
|
||||||
|
Self::HTTP_3 => 4.into_dart(),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive
|
impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive
|
||||||
for Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion
|
for crate::http_package::MyHttpVersion
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
impl
|
impl flutter_rust_bridge::IntoIntoDart<crate::http_package::MyHttpVersion>
|
||||||
flutter_rust_bridge::IntoIntoDart<
|
for crate::http_package::MyHttpVersion
|
||||||
Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion,
|
|
||||||
> for reqwest::Version
|
|
||||||
{
|
{
|
||||||
fn into_into_dart(
|
fn into_into_dart(self) -> crate::http_package::MyHttpVersion {
|
||||||
self,
|
self
|
||||||
) -> Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion
|
|
||||||
{
|
|
||||||
Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
self,
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||||
@ -539,13 +513,6 @@ impl SseEncode for flutter_rust_bridge::for_generated::anyhow::Error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SseEncode for reqwest::Version {
|
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
|
||||||
fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
|
|
||||||
<RustOpaqueMoi<flutter_rust_bridge::for_generated::rust_async::RwLock<reqwest :: Version>>>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), serializer);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl SseEncode for std::collections::HashMap<String, String> {
|
impl SseEncode for std::collections::HashMap<String, String> {
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
|
fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
|
||||||
@ -553,17 +520,6 @@ impl SseEncode for std::collections::HashMap<String, String> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SseEncode
|
|
||||||
for RustOpaqueMoi<flutter_rust_bridge::for_generated::rust_async::RwLock<reqwest::Version>>
|
|
||||||
{
|
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
|
||||||
fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
|
|
||||||
let (ptr, size) = self.sse_encode_raw();
|
|
||||||
<usize>::sse_encode(ptr, serializer);
|
|
||||||
<i32>::sse_encode(size, serializer);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl SseEncode for String {
|
impl SseEncode for String {
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
|
fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
|
||||||
@ -608,6 +564,25 @@ impl SseEncode for Vec<(String, String)> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl SseEncode for crate::http_package::MyHttpVersion {
|
||||||
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
|
fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
|
||||||
|
<i32>::sse_encode(
|
||||||
|
match self {
|
||||||
|
crate::http_package::MyHttpVersion::HTTP_09 => 0,
|
||||||
|
crate::http_package::MyHttpVersion::HTTP_10 => 1,
|
||||||
|
crate::http_package::MyHttpVersion::HTTP_11 => 2,
|
||||||
|
crate::http_package::MyHttpVersion::HTTP_2 => 3,
|
||||||
|
crate::http_package::MyHttpVersion::HTTP_3 => 4,
|
||||||
|
_ => {
|
||||||
|
unimplemented!("");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
serializer,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl SseEncode for crate::api::http_api::MyMethod {
|
impl SseEncode for crate::api::http_api::MyMethod {
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
|
fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
|
||||||
@ -676,7 +651,7 @@ impl SseEncode for crate::http_package::RustHttpResponse {
|
|||||||
<std::collections::HashMap<String, String>>::sse_encode(self.headers, serializer);
|
<std::collections::HashMap<String, String>>::sse_encode(self.headers, serializer);
|
||||||
<String>::sse_encode(self.url, serializer);
|
<String>::sse_encode(self.url, serializer);
|
||||||
<Option<u64>>::sse_encode(self.content_length, serializer);
|
<Option<u64>>::sse_encode(self.content_length, serializer);
|
||||||
<reqwest::Version>::sse_encode(self.version, serializer);
|
<crate::http_package::MyHttpVersion>::sse_encode(self.version, serializer);
|
||||||
<String>::sse_encode(self.remote_addr, serializer);
|
<String>::sse_encode(self.remote_addr, serializer);
|
||||||
<Option<Vec<u8>>>::sse_encode(self.data, serializer);
|
<Option<Vec<u8>>>::sse_encode(self.data, serializer);
|
||||||
}
|
}
|
||||||
@ -708,16 +683,6 @@ impl SseEncode for () {
|
|||||||
fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {}
|
fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SseEncode for usize {
|
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
|
||||||
fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
|
|
||||||
serializer
|
|
||||||
.cursor
|
|
||||||
.write_u64::<NativeEndian>(self as _)
|
|
||||||
.unwrap();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl SseEncode for bool {
|
impl SseEncode for bool {
|
||||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||||
fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
|
fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
// This file is automatically generated, so please do not edit it.
|
// This file is automatically generated, so please do not edit it.
|
||||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25.
|
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.27.
|
||||||
|
|
||||||
// Section: imports
|
// Section: imports
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::api::http_api::*;
|
|
||||||
use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
|
use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
|
||||||
use flutter_rust_bridge::for_generated::transform_result_dco;
|
use flutter_rust_bridge::for_generated::transform_result_dco;
|
||||||
use flutter_rust_bridge::for_generated::wasm_bindgen;
|
use flutter_rust_bridge::for_generated::wasm_bindgen;
|
||||||
@ -14,17 +13,3 @@ use flutter_rust_bridge::{Handler, IntoIntoDart};
|
|||||||
// Section: boilerplate
|
// Section: boilerplate
|
||||||
|
|
||||||
flutter_rust_bridge::frb_generated_boilerplate_web!();
|
flutter_rust_bridge::frb_generated_boilerplate_web!();
|
||||||
|
|
||||||
#[wasm_bindgen]
|
|
||||||
pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
ptr: *const std::ffi::c_void,
|
|
||||||
) {
|
|
||||||
MoiArc::<flutter_rust_bridge::for_generated::rust_async::RwLock<reqwest :: Version>>::increment_strong_count(ptr as _);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[wasm_bindgen]
|
|
||||||
pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockreqwestVersion(
|
|
||||||
ptr: *const std::ffi::c_void,
|
|
||||||
) {
|
|
||||||
MoiArc::<flutter_rust_bridge::for_generated::rust_async::RwLock<reqwest :: Version>>::decrement_strong_count(ptr as _);
|
|
||||||
}
|
|
||||||
|
@ -8,17 +8,30 @@ use std::sync::{Arc, RwLock};
|
|||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
use flutter_rust_bridge::for_generated::lazy_static;
|
use flutter_rust_bridge::for_generated::lazy_static;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[allow(non_camel_case_types)]
|
||||||
|
pub enum MyHttpVersion { HTTP_09, HTTP_10, HTTP_11, HTTP_2, HTTP_3 }
|
||||||
|
|
||||||
pub struct RustHttpResponse {
|
pub struct RustHttpResponse {
|
||||||
pub status_code: u16,
|
pub status_code: u16,
|
||||||
pub headers: HashMap<String, String>,
|
pub headers: HashMap<String, String>,
|
||||||
pub url: String,
|
pub url: String,
|
||||||
pub content_length: Option<u64>,
|
pub content_length: Option<u64>,
|
||||||
pub version: reqwest::Version,
|
pub version: MyHttpVersion,
|
||||||
pub remote_addr: String,
|
pub remote_addr: String,
|
||||||
pub data: Option<Vec<u8>>,
|
pub data: Option<Vec<u8>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn _hyper_version_to_my_version(v: reqwest::Version) -> MyHttpVersion {
|
||||||
|
match v {
|
||||||
|
reqwest::Version::HTTP_09 => { MyHttpVersion::HTTP_09 }
|
||||||
|
reqwest::Version::HTTP_10 => { MyHttpVersion::HTTP_10 }
|
||||||
|
reqwest::Version::HTTP_11 => { MyHttpVersion::HTTP_11 }
|
||||||
|
reqwest::Version::HTTP_2 => { MyHttpVersion::HTTP_2 }
|
||||||
|
reqwest::Version::HTTP_3 => { MyHttpVersion::HTTP_3 }
|
||||||
|
_ => { panic!("Unsupported HTTP version") }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref DEFAULT_HEADER: RwLock<HeaderMap> = RwLock::from(HeaderMap::new());
|
static ref DEFAULT_HEADER: RwLock<HeaderMap> = RwLock::from(HeaderMap::new());
|
||||||
static ref DNS_CLIENT : Arc<dns::MyHickoryDnsResolver> = Arc::from(dns::MyHickoryDnsResolver::default());
|
static ref DNS_CLIENT : Arc<dns::MyHickoryDnsResolver> = Arc::from(dns::MyHickoryDnsResolver::default());
|
||||||
@ -73,6 +86,8 @@ pub async fn fetch(
|
|||||||
data = Some(bytes.unwrap().to_vec());
|
data = Some(bytes.unwrap().to_vec());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let version = _hyper_version_to_my_version(version);
|
||||||
|
|
||||||
let resp = RustHttpResponse {
|
let resp = RustHttpResponse {
|
||||||
status_code,
|
status_code,
|
||||||
headers: resp_headers,
|
headers: resp_headers,
|
||||||
|
Loading…
Reference in New Issue
Block a user