This commit is contained in:
@@ -0,0 +1,114 @@
|
||||
// This file is automatically generated, so please do not edit it.
|
||||
// @generated by `flutter_rust_bridge`@ 2.12.0.
|
||||
|
||||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
||||
|
||||
import '../frb_generated.dart';
|
||||
import 'ffi_types.dart';
|
||||
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
|
||||
|
||||
// These functions are ignored because they are not marked as `pub`: `album_result_to_ffi`, `apply_log_level`, `config_from_ffi`, `config_to_ffi`, `error_to_ffi`, `get_engine`, `status_to_ffi`, `summary_to_ffi`, `task_item_to_ffi`, `task_to_ffi`
|
||||
|
||||
/// 初始化同步引擎
|
||||
Future<void> initSyncEngine({required SyncConfigFfi config}) =>
|
||||
RustSyncApi.instance.api.crateApiFfiInitSyncEngine(config: config);
|
||||
|
||||
/// 销毁同步引擎
|
||||
Future<void> disposeSyncEngine() =>
|
||||
RustSyncApi.instance.api.crateApiFfiDisposeSyncEngine();
|
||||
|
||||
/// 进程退出前同步清理(WCF 模式下必须调用,确保占位符释放)
|
||||
/// 此函数是同步的,不依赖 tokio runtime,可安全在 exit(0) 前调用
|
||||
Future<void> syncShutdown() =>
|
||||
RustSyncApi.instance.api.crateApiFfiSyncShutdown();
|
||||
|
||||
/// 执行初始全量同步
|
||||
Future<SyncSummaryFfi> startInitialSync() =>
|
||||
RustSyncApi.instance.api.crateApiFfiStartInitialSync();
|
||||
|
||||
/// 启动持续同步(后台运行,立即返回)
|
||||
Future<void> startContinuousSync() =>
|
||||
RustSyncApi.instance.api.crateApiFfiStartContinuousSync();
|
||||
|
||||
/// 停止同步
|
||||
Future<void> stopSync() => RustSyncApi.instance.api.crateApiFfiStopSync();
|
||||
|
||||
/// 暂停同步
|
||||
Future<void> pauseSync() => RustSyncApi.instance.api.crateApiFfiPauseSync();
|
||||
|
||||
/// 恢复同步
|
||||
Future<void> resumeSync() => RustSyncApi.instance.api.crateApiFfiResumeSync();
|
||||
|
||||
/// 强制同步(重新扫描全量差异)
|
||||
Future<SyncSummaryFfi> forceSync() =>
|
||||
RustSyncApi.instance.api.crateApiFfiForceSync();
|
||||
|
||||
/// 重置同步:停止任务 → 清空 DB → 清空本地目录 → 回到初始状态
|
||||
Future<void> resetSync() => RustSyncApi.instance.api.crateApiFfiResetSync();
|
||||
|
||||
/// 获取同步状态快照
|
||||
Future<SyncStatusFfi> getSyncStatus() =>
|
||||
RustSyncApi.instance.api.crateApiFfiGetSyncStatus();
|
||||
|
||||
/// 获取活跃 Worker 数量
|
||||
Future<int> getActiveWorkerCount() =>
|
||||
RustSyncApi.instance.api.crateApiFfiGetActiveWorkerCount();
|
||||
|
||||
/// 获取同步配置
|
||||
Future<SyncConfigFfi> getSyncConfig() =>
|
||||
RustSyncApi.instance.api.crateApiFfiGetSyncConfig();
|
||||
|
||||
/// 更新同步配置
|
||||
Future<void> updateSyncConfig({required SyncConfigFfi config}) =>
|
||||
RustSyncApi.instance.api.crateApiFfiUpdateSyncConfig(config: config);
|
||||
|
||||
/// Dart 推送新 Token 给 Rust
|
||||
Future<void> updateTokens({required String accessToken}) =>
|
||||
RustSyncApi.instance.api.crateApiFfiUpdateTokens(accessToken: accessToken);
|
||||
|
||||
/// 水合文件(Windows 按需下载)
|
||||
Future<void> hydrateFile({required String localPath}) =>
|
||||
RustSyncApi.instance.api.crateApiFfiHydrateFile(localPath: localPath);
|
||||
|
||||
/// 同步相册到云端
|
||||
Future<void> syncAlbumToCloud({
|
||||
required List<String> albumPaths,
|
||||
required String remoteDcimUri,
|
||||
}) => RustSyncApi.instance.api.crateApiFfiSyncAlbumToCloud(
|
||||
albumPaths: albumPaths,
|
||||
remoteDcimUri: remoteDcimUri,
|
||||
);
|
||||
|
||||
/// 检查云端是否存在 DCIM/Pictures 目录
|
||||
Future<CloudAlbumCheckResultFfi> checkCloudAlbumDirs({
|
||||
required String baseUri,
|
||||
}) => RustSyncApi.instance.api.crateApiFfiCheckCloudAlbumDirs(baseUri: baseUri);
|
||||
|
||||
/// 在云端创建 DCIM/Pictures 目录
|
||||
Future<void> createCloudAlbumDirs({required String baseUri}) =>
|
||||
RustSyncApi.instance.api.crateApiFfiCreateCloudAlbumDirs(baseUri: baseUri);
|
||||
|
||||
/// 注册 Rust→Dart 事件推送通道
|
||||
Stream<SyncEventFfi> registerSyncEventSink() =>
|
||||
RustSyncApi.instance.api.crateApiFfiRegisterSyncEventSink();
|
||||
|
||||
/// 运行时热修改日志级别(立即生效,无需重启)
|
||||
Future<void> setSyncLogLevel({required String level}) =>
|
||||
RustSyncApi.instance.api.crateApiFfiSetSyncLogLevel(level: level);
|
||||
|
||||
/// 获取活跃的同步任务列表
|
||||
Future<List<SyncTaskFfi>> getActiveTasks() =>
|
||||
RustSyncApi.instance.api.crateApiFfiGetActiveTasks();
|
||||
|
||||
/// 获取最近同步任务列表
|
||||
Future<List<SyncTaskFfi>> getRecentTasks({required int limit}) =>
|
||||
RustSyncApi.instance.api.crateApiFfiGetRecentTasks(limit: limit);
|
||||
|
||||
/// 获取任务详情(任务项列表)
|
||||
Future<List<SyncTaskItemFfi>> getTaskDetail({required String taskId}) =>
|
||||
RustSyncApi.instance.api.crateApiFfiGetTaskDetail(taskId: taskId);
|
||||
|
||||
/// 多维度查询任务项
|
||||
Future<List<SyncTaskItemFfi>> queryTaskItems({
|
||||
required TaskItemFilterFfi filter,
|
||||
}) => RustSyncApi.instance.api.crateApiFfiQueryTaskItems(filter: filter);
|
||||
@@ -0,0 +1,450 @@
|
||||
// This file is automatically generated, so please do not edit it.
|
||||
// @generated by `flutter_rust_bridge`@ 2.12.0.
|
||||
|
||||
// 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 'ffi_types.freezed.dart';
|
||||
|
||||
// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`
|
||||
|
||||
/// Android: 云端相册目录检查结果
|
||||
class CloudAlbumCheckResultFfi {
|
||||
final bool dcimExists;
|
||||
final bool picturesExists;
|
||||
final String? dcimUri;
|
||||
final String? picturesUri;
|
||||
|
||||
const CloudAlbumCheckResultFfi({
|
||||
required this.dcimExists,
|
||||
required this.picturesExists,
|
||||
this.dcimUri,
|
||||
this.picturesUri,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
dcimExists.hashCode ^
|
||||
picturesExists.hashCode ^
|
||||
dcimUri.hashCode ^
|
||||
picturesUri.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is CloudAlbumCheckResultFfi &&
|
||||
runtimeType == other.runtimeType &&
|
||||
dcimExists == other.dcimExists &&
|
||||
picturesExists == other.picturesExists &&
|
||||
dcimUri == other.dcimUri &&
|
||||
picturesUri == other.picturesUri;
|
||||
}
|
||||
|
||||
/// 同步配置
|
||||
class SyncConfigFfi {
|
||||
final String baseUrl;
|
||||
final String accessToken;
|
||||
final String refreshToken;
|
||||
final String localRoot;
|
||||
final String remoteRoot;
|
||||
final String syncMode;
|
||||
final String conflictStrategy;
|
||||
final String wcfDeleteMode;
|
||||
final int maxConcurrentTransfers;
|
||||
final BigInt bandwidthLimitKbps;
|
||||
final List<String> excludedPaths;
|
||||
final int maxWorkers;
|
||||
final String dataDir;
|
||||
final String clientId;
|
||||
final String logLevel;
|
||||
|
||||
const SyncConfigFfi({
|
||||
required this.baseUrl,
|
||||
required this.accessToken,
|
||||
required this.refreshToken,
|
||||
required this.localRoot,
|
||||
required this.remoteRoot,
|
||||
required this.syncMode,
|
||||
required this.conflictStrategy,
|
||||
required this.wcfDeleteMode,
|
||||
required this.maxConcurrentTransfers,
|
||||
required this.bandwidthLimitKbps,
|
||||
required this.excludedPaths,
|
||||
required this.maxWorkers,
|
||||
required this.dataDir,
|
||||
required this.clientId,
|
||||
required this.logLevel,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
baseUrl.hashCode ^
|
||||
accessToken.hashCode ^
|
||||
refreshToken.hashCode ^
|
||||
localRoot.hashCode ^
|
||||
remoteRoot.hashCode ^
|
||||
syncMode.hashCode ^
|
||||
conflictStrategy.hashCode ^
|
||||
wcfDeleteMode.hashCode ^
|
||||
maxConcurrentTransfers.hashCode ^
|
||||
bandwidthLimitKbps.hashCode ^
|
||||
excludedPaths.hashCode ^
|
||||
maxWorkers.hashCode ^
|
||||
dataDir.hashCode ^
|
||||
clientId.hashCode ^
|
||||
logLevel.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is SyncConfigFfi &&
|
||||
runtimeType == other.runtimeType &&
|
||||
baseUrl == other.baseUrl &&
|
||||
accessToken == other.accessToken &&
|
||||
refreshToken == other.refreshToken &&
|
||||
localRoot == other.localRoot &&
|
||||
remoteRoot == other.remoteRoot &&
|
||||
syncMode == other.syncMode &&
|
||||
conflictStrategy == other.conflictStrategy &&
|
||||
wcfDeleteMode == other.wcfDeleteMode &&
|
||||
maxConcurrentTransfers == other.maxConcurrentTransfers &&
|
||||
bandwidthLimitKbps == other.bandwidthLimitKbps &&
|
||||
excludedPaths == other.excludedPaths &&
|
||||
maxWorkers == other.maxWorkers &&
|
||||
dataDir == other.dataDir &&
|
||||
clientId == other.clientId &&
|
||||
logLevel == other.logLevel;
|
||||
}
|
||||
|
||||
@freezed
|
||||
sealed class SyncErrorFfi with _$SyncErrorFfi implements FrbException {
|
||||
const SyncErrorFfi._();
|
||||
|
||||
const factory SyncErrorFfi.notInitialized() = SyncErrorFfi_NotInitialized;
|
||||
const factory SyncErrorFfi.networkError({required String message}) =
|
||||
SyncErrorFfi_NetworkError;
|
||||
const factory SyncErrorFfi.diskFull({
|
||||
required BigInt needed,
|
||||
required BigInt available,
|
||||
}) = SyncErrorFfi_DiskFull;
|
||||
const factory SyncErrorFfi.authError({required String message}) =
|
||||
SyncErrorFfi_AuthError;
|
||||
const factory SyncErrorFfi.conflictError({required int count}) =
|
||||
SyncErrorFfi_ConflictError;
|
||||
const factory SyncErrorFfi.internalError({required String message}) =
|
||||
SyncErrorFfi_InternalError;
|
||||
}
|
||||
|
||||
@freezed
|
||||
sealed class SyncEventFfi with _$SyncEventFfi {
|
||||
const SyncEventFfi._();
|
||||
|
||||
const factory SyncEventFfi.stateChanged({required String newState}) =
|
||||
SyncEventFfi_StateChanged;
|
||||
const factory SyncEventFfi.progress({
|
||||
required BigInt synced,
|
||||
required BigInt total,
|
||||
required String currentFile,
|
||||
}) = SyncEventFfi_Progress;
|
||||
const factory SyncEventFfi.fileUploaded({
|
||||
required String localPath,
|
||||
required String remoteUri,
|
||||
}) = SyncEventFfi_FileUploaded;
|
||||
const factory SyncEventFfi.fileDownloaded({
|
||||
required String localPath,
|
||||
required String remoteUri,
|
||||
}) = SyncEventFfi_FileDownloaded;
|
||||
const factory SyncEventFfi.conflictDetected({
|
||||
required String localPath,
|
||||
required String conflictType,
|
||||
}) = SyncEventFfi_ConflictDetected;
|
||||
const factory SyncEventFfi.error({
|
||||
required String message,
|
||||
required bool recoverable,
|
||||
}) = SyncEventFfi_Error;
|
||||
const factory SyncEventFfi.tokenExpired() = SyncEventFfi_TokenExpired;
|
||||
const factory SyncEventFfi.diskSpaceWarning({required BigInt availableMb}) =
|
||||
SyncEventFfi_DiskSpaceWarning;
|
||||
const factory SyncEventFfi.initialSyncComplete({
|
||||
required SyncSummaryFfi summary,
|
||||
}) = SyncEventFfi_InitialSyncComplete;
|
||||
const factory SyncEventFfi.workerStarted({
|
||||
required String taskId,
|
||||
required String trigger,
|
||||
required int uploadCount,
|
||||
required int downloadCount,
|
||||
}) = SyncEventFfi_WorkerStarted;
|
||||
const factory SyncEventFfi.workerCompleted({
|
||||
required String taskId,
|
||||
required int uploaded,
|
||||
required int downloaded,
|
||||
required int renamed,
|
||||
required int moved,
|
||||
required int failed,
|
||||
required BigInt durationMs,
|
||||
}) = SyncEventFfi_WorkerCompleted;
|
||||
const factory SyncEventFfi.workerFailed({
|
||||
required String taskId,
|
||||
required String message,
|
||||
}) = SyncEventFfi_WorkerFailed;
|
||||
const factory SyncEventFfi.taskItemUpdated({
|
||||
required String taskId,
|
||||
required String relativePath,
|
||||
required String action,
|
||||
required String status,
|
||||
}) = SyncEventFfi_TaskItemUpdated;
|
||||
}
|
||||
|
||||
/// 同步状态快照
|
||||
class SyncStatusFfi {
|
||||
final String state;
|
||||
final BigInt syncedFiles;
|
||||
final BigInt totalFiles;
|
||||
final int uploadingCount;
|
||||
final int downloadingCount;
|
||||
final int conflictCount;
|
||||
final int errorCount;
|
||||
final String? lastSyncTime;
|
||||
final String? errorMessage;
|
||||
|
||||
const SyncStatusFfi({
|
||||
required this.state,
|
||||
required this.syncedFiles,
|
||||
required this.totalFiles,
|
||||
required this.uploadingCount,
|
||||
required this.downloadingCount,
|
||||
required this.conflictCount,
|
||||
required this.errorCount,
|
||||
this.lastSyncTime,
|
||||
this.errorMessage,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
state.hashCode ^
|
||||
syncedFiles.hashCode ^
|
||||
totalFiles.hashCode ^
|
||||
uploadingCount.hashCode ^
|
||||
downloadingCount.hashCode ^
|
||||
conflictCount.hashCode ^
|
||||
errorCount.hashCode ^
|
||||
lastSyncTime.hashCode ^
|
||||
errorMessage.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is SyncStatusFfi &&
|
||||
runtimeType == other.runtimeType &&
|
||||
state == other.state &&
|
||||
syncedFiles == other.syncedFiles &&
|
||||
totalFiles == other.totalFiles &&
|
||||
uploadingCount == other.uploadingCount &&
|
||||
downloadingCount == other.downloadingCount &&
|
||||
conflictCount == other.conflictCount &&
|
||||
errorCount == other.errorCount &&
|
||||
lastSyncTime == other.lastSyncTime &&
|
||||
errorMessage == other.errorMessage;
|
||||
}
|
||||
|
||||
/// 初始同步摘要
|
||||
class SyncSummaryFfi {
|
||||
final int uploaded;
|
||||
final int downloaded;
|
||||
final int renamed;
|
||||
final int moved;
|
||||
final int conflicts;
|
||||
final int failed;
|
||||
final int skipped;
|
||||
final int deletedLocal;
|
||||
final int deletedRemote;
|
||||
final BigInt durationMs;
|
||||
|
||||
const SyncSummaryFfi({
|
||||
required this.uploaded,
|
||||
required this.downloaded,
|
||||
required this.renamed,
|
||||
required this.moved,
|
||||
required this.conflicts,
|
||||
required this.failed,
|
||||
required this.skipped,
|
||||
required this.deletedLocal,
|
||||
required this.deletedRemote,
|
||||
required this.durationMs,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
uploaded.hashCode ^
|
||||
downloaded.hashCode ^
|
||||
renamed.hashCode ^
|
||||
moved.hashCode ^
|
||||
conflicts.hashCode ^
|
||||
failed.hashCode ^
|
||||
skipped.hashCode ^
|
||||
deletedLocal.hashCode ^
|
||||
deletedRemote.hashCode ^
|
||||
durationMs.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is SyncSummaryFfi &&
|
||||
runtimeType == other.runtimeType &&
|
||||
uploaded == other.uploaded &&
|
||||
downloaded == other.downloaded &&
|
||||
renamed == other.renamed &&
|
||||
moved == other.moved &&
|
||||
conflicts == other.conflicts &&
|
||||
failed == other.failed &&
|
||||
skipped == other.skipped &&
|
||||
deletedLocal == other.deletedLocal &&
|
||||
deletedRemote == other.deletedRemote &&
|
||||
durationMs == other.durationMs;
|
||||
}
|
||||
|
||||
/// 同步任务摘要(FFI)
|
||||
class SyncTaskFfi {
|
||||
final String id;
|
||||
final String trigger;
|
||||
final int totalCount;
|
||||
final int completedCount;
|
||||
final int failedCount;
|
||||
final String status;
|
||||
final String createdAt;
|
||||
final String updatedAt;
|
||||
final String? finishedAt;
|
||||
|
||||
const SyncTaskFfi({
|
||||
required this.id,
|
||||
required this.trigger,
|
||||
required this.totalCount,
|
||||
required this.completedCount,
|
||||
required this.failedCount,
|
||||
required this.status,
|
||||
required this.createdAt,
|
||||
required this.updatedAt,
|
||||
this.finishedAt,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
id.hashCode ^
|
||||
trigger.hashCode ^
|
||||
totalCount.hashCode ^
|
||||
completedCount.hashCode ^
|
||||
failedCount.hashCode ^
|
||||
status.hashCode ^
|
||||
createdAt.hashCode ^
|
||||
updatedAt.hashCode ^
|
||||
finishedAt.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is SyncTaskFfi &&
|
||||
runtimeType == other.runtimeType &&
|
||||
id == other.id &&
|
||||
trigger == other.trigger &&
|
||||
totalCount == other.totalCount &&
|
||||
completedCount == other.completedCount &&
|
||||
failedCount == other.failedCount &&
|
||||
status == other.status &&
|
||||
createdAt == other.createdAt &&
|
||||
updatedAt == other.updatedAt &&
|
||||
finishedAt == other.finishedAt;
|
||||
}
|
||||
|
||||
/// 同步任务项(FFI)
|
||||
class SyncTaskItemFfi {
|
||||
final PlatformInt64 id;
|
||||
final String taskId;
|
||||
final String relativePath;
|
||||
final String actionType;
|
||||
final String status;
|
||||
final BigInt fileSize;
|
||||
final String? errorMessage;
|
||||
final String createdAt;
|
||||
final String updatedAt;
|
||||
|
||||
const SyncTaskItemFfi({
|
||||
required this.id,
|
||||
required this.taskId,
|
||||
required this.relativePath,
|
||||
required this.actionType,
|
||||
required this.status,
|
||||
required this.fileSize,
|
||||
this.errorMessage,
|
||||
required this.createdAt,
|
||||
required this.updatedAt,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
id.hashCode ^
|
||||
taskId.hashCode ^
|
||||
relativePath.hashCode ^
|
||||
actionType.hashCode ^
|
||||
status.hashCode ^
|
||||
fileSize.hashCode ^
|
||||
errorMessage.hashCode ^
|
||||
createdAt.hashCode ^
|
||||
updatedAt.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is SyncTaskItemFfi &&
|
||||
runtimeType == other.runtimeType &&
|
||||
id == other.id &&
|
||||
taskId == other.taskId &&
|
||||
relativePath == other.relativePath &&
|
||||
actionType == other.actionType &&
|
||||
status == other.status &&
|
||||
fileSize == other.fileSize &&
|
||||
errorMessage == other.errorMessage &&
|
||||
createdAt == other.createdAt &&
|
||||
updatedAt == other.updatedAt;
|
||||
}
|
||||
|
||||
/// 任务项查询过滤器(FFI)
|
||||
class TaskItemFilterFfi {
|
||||
final String? taskId;
|
||||
final String? relativePathContains;
|
||||
final String? actionType;
|
||||
final String? status;
|
||||
final int limit;
|
||||
final int offset;
|
||||
|
||||
const TaskItemFilterFfi({
|
||||
this.taskId,
|
||||
this.relativePathContains,
|
||||
this.actionType,
|
||||
this.status,
|
||||
required this.limit,
|
||||
required this.offset,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
taskId.hashCode ^
|
||||
relativePathContains.hashCode ^
|
||||
actionType.hashCode ^
|
||||
status.hashCode ^
|
||||
limit.hashCode ^
|
||||
offset.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is TaskItemFilterFfi &&
|
||||
runtimeType == other.runtimeType &&
|
||||
taskId == other.taskId &&
|
||||
relativePathContains == other.relativePathContains &&
|
||||
actionType == other.actionType &&
|
||||
status == other.status &&
|
||||
limit == other.limit &&
|
||||
offset == other.offset;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,328 @@
|
||||
// This file is automatically generated, so please do not edit it.
|
||||
// @generated by `flutter_rust_bridge`@ 2.12.0.
|
||||
|
||||
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
|
||||
|
||||
import 'api/ffi.dart';
|
||||
import 'api/ffi_types.dart';
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:ffi' as ffi;
|
||||
import 'frb_generated.dart';
|
||||
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated_io.dart';
|
||||
|
||||
abstract class RustSyncApiApiImplPlatform extends BaseApiImpl<RustSyncApiWire> {
|
||||
RustSyncApiApiImplPlatform({
|
||||
required super.handler,
|
||||
required super.wire,
|
||||
required super.generalizedFrbRustBinding,
|
||||
required super.portManager,
|
||||
});
|
||||
|
||||
@protected
|
||||
AnyhowException dco_decode_AnyhowException(dynamic raw);
|
||||
|
||||
@protected
|
||||
RustStreamSink<SyncEventFfi> dco_decode_StreamSink_sync_event_ffi_Sse(
|
||||
dynamic raw,
|
||||
);
|
||||
|
||||
@protected
|
||||
String dco_decode_String(dynamic raw);
|
||||
|
||||
@protected
|
||||
bool dco_decode_bool(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncConfigFfi dco_decode_box_autoadd_sync_config_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncSummaryFfi dco_decode_box_autoadd_sync_summary_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
TaskItemFilterFfi dco_decode_box_autoadd_task_item_filter_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
CloudAlbumCheckResultFfi dco_decode_cloud_album_check_result_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
PlatformInt64 dco_decode_i_64(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<String> dco_decode_list_String(dynamic raw);
|
||||
|
||||
@protected
|
||||
Uint8List dco_decode_list_prim_u_8_strict(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<SyncTaskFfi> dco_decode_list_sync_task_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<SyncTaskItemFfi> dco_decode_list_sync_task_item_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
String? dco_decode_opt_String(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncConfigFfi dco_decode_sync_config_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncErrorFfi dco_decode_sync_error_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncEventFfi dco_decode_sync_event_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncStatusFfi dco_decode_sync_status_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncSummaryFfi dco_decode_sync_summary_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncTaskFfi dco_decode_sync_task_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncTaskItemFfi dco_decode_sync_task_item_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
TaskItemFilterFfi dco_decode_task_item_filter_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
int dco_decode_u_32(dynamic raw);
|
||||
|
||||
@protected
|
||||
BigInt dco_decode_u_64(dynamic raw);
|
||||
|
||||
@protected
|
||||
int dco_decode_u_8(dynamic raw);
|
||||
|
||||
@protected
|
||||
void dco_decode_unit(dynamic raw);
|
||||
|
||||
@protected
|
||||
AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RustStreamSink<SyncEventFfi> sse_decode_StreamSink_sync_event_ffi_Sse(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
String sse_decode_String(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
bool sse_decode_bool(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncConfigFfi sse_decode_box_autoadd_sync_config_ffi(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
SyncSummaryFfi sse_decode_box_autoadd_sync_summary_ffi(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
TaskItemFilterFfi sse_decode_box_autoadd_task_item_filter_ffi(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
CloudAlbumCheckResultFfi sse_decode_cloud_album_check_result_ffi(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
PlatformInt64 sse_decode_i_64(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<String> sse_decode_list_String(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<SyncTaskFfi> sse_decode_list_sync_task_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<SyncTaskItemFfi> sse_decode_list_sync_task_item_ffi(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
String? sse_decode_opt_String(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncConfigFfi sse_decode_sync_config_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncErrorFfi sse_decode_sync_error_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncEventFfi sse_decode_sync_event_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncStatusFfi sse_decode_sync_status_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncSummaryFfi sse_decode_sync_summary_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncTaskFfi sse_decode_sync_task_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncTaskItemFfi sse_decode_sync_task_item_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
TaskItemFilterFfi sse_decode_task_item_filter_ffi(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
int sse_decode_u_32(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
BigInt sse_decode_u_64(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
int sse_decode_u_8(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
void sse_decode_unit(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
int sse_decode_i_32(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_AnyhowException(
|
||||
AnyhowException self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_StreamSink_sync_event_ffi_Sse(
|
||||
RustStreamSink<SyncEventFfi> self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_String(String self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_bool(bool self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_sync_config_ffi(
|
||||
SyncConfigFfi self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_sync_summary_ffi(
|
||||
SyncSummaryFfi self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_task_item_filter_ffi(
|
||||
TaskItemFilterFfi self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_cloud_album_check_result_ffi(
|
||||
CloudAlbumCheckResultFfi self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_i_64(PlatformInt64 self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_String(List<String> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_prim_u_8_strict(
|
||||
Uint8List self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_sync_task_ffi(
|
||||
List<SyncTaskFfi> self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_sync_task_item_ffi(
|
||||
List<SyncTaskItemFfi> self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_opt_String(String? self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_sync_config_ffi(SyncConfigFfi self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_sync_error_ffi(SyncErrorFfi self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_sync_event_ffi(SyncEventFfi self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_sync_status_ffi(SyncStatusFfi self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_sync_summary_ffi(
|
||||
SyncSummaryFfi self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_sync_task_ffi(SyncTaskFfi self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_sync_task_item_ffi(
|
||||
SyncTaskItemFfi self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_task_item_filter_ffi(
|
||||
TaskItemFilterFfi self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_u_32(int self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_u_64(BigInt self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_u_8(int self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_unit(void self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_i_32(int self, SseSerializer serializer);
|
||||
}
|
||||
|
||||
// Section: wire_class
|
||||
|
||||
class RustSyncApiWire implements BaseWire {
|
||||
factory RustSyncApiWire.fromExternalLibrary(ExternalLibrary lib) =>
|
||||
RustSyncApiWire(lib.ffiDynamicLibrary);
|
||||
|
||||
/// Holds the symbol lookup function.
|
||||
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
|
||||
_lookup;
|
||||
|
||||
/// The symbols are looked up in [dynamicLibrary].
|
||||
RustSyncApiWire(ffi.DynamicLibrary dynamicLibrary)
|
||||
: _lookup = dynamicLibrary.lookup;
|
||||
}
|
||||
@@ -0,0 +1,328 @@
|
||||
// This file is automatically generated, so please do not edit it.
|
||||
// @generated by `flutter_rust_bridge`@ 2.12.0.
|
||||
|
||||
// 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
|
||||
|
||||
// Static analysis wrongly picks the IO variant, thus ignore this
|
||||
// ignore_for_file: argument_type_not_assignable
|
||||
|
||||
import 'api/ffi.dart';
|
||||
import 'api/ffi_types.dart';
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'frb_generated.dart';
|
||||
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated_web.dart';
|
||||
|
||||
abstract class RustSyncApiApiImplPlatform extends BaseApiImpl<RustSyncApiWire> {
|
||||
RustSyncApiApiImplPlatform({
|
||||
required super.handler,
|
||||
required super.wire,
|
||||
required super.generalizedFrbRustBinding,
|
||||
required super.portManager,
|
||||
});
|
||||
|
||||
@protected
|
||||
AnyhowException dco_decode_AnyhowException(dynamic raw);
|
||||
|
||||
@protected
|
||||
RustStreamSink<SyncEventFfi> dco_decode_StreamSink_sync_event_ffi_Sse(
|
||||
dynamic raw,
|
||||
);
|
||||
|
||||
@protected
|
||||
String dco_decode_String(dynamic raw);
|
||||
|
||||
@protected
|
||||
bool dco_decode_bool(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncConfigFfi dco_decode_box_autoadd_sync_config_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncSummaryFfi dco_decode_box_autoadd_sync_summary_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
TaskItemFilterFfi dco_decode_box_autoadd_task_item_filter_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
CloudAlbumCheckResultFfi dco_decode_cloud_album_check_result_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
PlatformInt64 dco_decode_i_64(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<String> dco_decode_list_String(dynamic raw);
|
||||
|
||||
@protected
|
||||
Uint8List dco_decode_list_prim_u_8_strict(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<SyncTaskFfi> dco_decode_list_sync_task_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<SyncTaskItemFfi> dco_decode_list_sync_task_item_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
String? dco_decode_opt_String(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncConfigFfi dco_decode_sync_config_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncErrorFfi dco_decode_sync_error_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncEventFfi dco_decode_sync_event_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncStatusFfi dco_decode_sync_status_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncSummaryFfi dco_decode_sync_summary_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncTaskFfi dco_decode_sync_task_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
SyncTaskItemFfi dco_decode_sync_task_item_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
TaskItemFilterFfi dco_decode_task_item_filter_ffi(dynamic raw);
|
||||
|
||||
@protected
|
||||
int dco_decode_u_32(dynamic raw);
|
||||
|
||||
@protected
|
||||
BigInt dco_decode_u_64(dynamic raw);
|
||||
|
||||
@protected
|
||||
int dco_decode_u_8(dynamic raw);
|
||||
|
||||
@protected
|
||||
void dco_decode_unit(dynamic raw);
|
||||
|
||||
@protected
|
||||
AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RustStreamSink<SyncEventFfi> sse_decode_StreamSink_sync_event_ffi_Sse(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
String sse_decode_String(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
bool sse_decode_bool(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncConfigFfi sse_decode_box_autoadd_sync_config_ffi(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
SyncSummaryFfi sse_decode_box_autoadd_sync_summary_ffi(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
TaskItemFilterFfi sse_decode_box_autoadd_task_item_filter_ffi(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
CloudAlbumCheckResultFfi sse_decode_cloud_album_check_result_ffi(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
PlatformInt64 sse_decode_i_64(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<String> sse_decode_list_String(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<SyncTaskFfi> sse_decode_list_sync_task_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<SyncTaskItemFfi> sse_decode_list_sync_task_item_ffi(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
String? sse_decode_opt_String(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncConfigFfi sse_decode_sync_config_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncErrorFfi sse_decode_sync_error_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncEventFfi sse_decode_sync_event_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncStatusFfi sse_decode_sync_status_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncSummaryFfi sse_decode_sync_summary_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncTaskFfi sse_decode_sync_task_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
SyncTaskItemFfi sse_decode_sync_task_item_ffi(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
TaskItemFilterFfi sse_decode_task_item_filter_ffi(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
int sse_decode_u_32(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
BigInt sse_decode_u_64(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
int sse_decode_u_8(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
void sse_decode_unit(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
int sse_decode_i_32(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_AnyhowException(
|
||||
AnyhowException self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_StreamSink_sync_event_ffi_Sse(
|
||||
RustStreamSink<SyncEventFfi> self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_String(String self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_bool(bool self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_sync_config_ffi(
|
||||
SyncConfigFfi self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_sync_summary_ffi(
|
||||
SyncSummaryFfi self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_box_autoadd_task_item_filter_ffi(
|
||||
TaskItemFilterFfi self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_cloud_album_check_result_ffi(
|
||||
CloudAlbumCheckResultFfi self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_i_64(PlatformInt64 self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_String(List<String> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_prim_u_8_strict(
|
||||
Uint8List self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_sync_task_ffi(
|
||||
List<SyncTaskFfi> self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_sync_task_item_ffi(
|
||||
List<SyncTaskItemFfi> self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_opt_String(String? self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_sync_config_ffi(SyncConfigFfi self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_sync_error_ffi(SyncErrorFfi self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_sync_event_ffi(SyncEventFfi self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_sync_status_ffi(SyncStatusFfi self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_sync_summary_ffi(
|
||||
SyncSummaryFfi self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_sync_task_ffi(SyncTaskFfi self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_sync_task_item_ffi(
|
||||
SyncTaskItemFfi self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_task_item_filter_ffi(
|
||||
TaskItemFilterFfi self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_u_32(int self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_u_64(BigInt self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_u_8(int self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_unit(void self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_i_32(int self, SseSerializer serializer);
|
||||
}
|
||||
|
||||
// Section: wire_class
|
||||
|
||||
class RustSyncApiWire implements BaseWire {
|
||||
RustSyncApiWire.fromExternalLibrary(ExternalLibrary lib);
|
||||
}
|
||||
|
||||
@JS('wasm_bindgen')
|
||||
external RustSyncApiWasmModule get wasmModule;
|
||||
|
||||
@JS()
|
||||
@anonymous
|
||||
extension type RustSyncApiWasmModule._(JSObject _) implements JSObject {}
|
||||
Reference in New Issue
Block a user