@@ -9789,7 +9789,7 @@ public protocol SyncServiceProtocol : AnyObject {
9789
9789
9790
9790
func state(listener: SyncServiceStateObserver) -> TaskHandle
9791
9791
9792
- func stop() async throws
9792
+ func stop() async
9793
9793
9794
9794
}
9795
9795
@@ -9867,9 +9867,9 @@ open func state(listener: SyncServiceStateObserver) -> TaskHandle {
9867
9867
})
9868
9868
}
9869
9869
9870
- open func stop()async throws {
9870
+ open func stop()async {
9871
9871
return
9872
- try await uniffiRustCallAsync(
9872
+ try! await uniffiRustCallAsync(
9873
9873
rustFutureFunc: {
9874
9874
uniffi_matrix_sdk_ffi_fn_method_syncservice_stop(
9875
9875
self.uniffiClonePointer()
@@ -9880,7 +9880,8 @@ open func stop()async throws {
9880
9880
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_void,
9881
9881
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_void,
9882
9882
liftFunc: { $0 },
9883
- errorHandler: FfiConverterTypeClientError.lift
9883
+ errorHandler: nil
9884
+
9884
9885
)
9885
9886
}
9886
9887
@@ -9938,6 +9939,11 @@ public protocol SyncServiceBuilderProtocol : AnyObject {
9938
9939
9939
9940
func withCrossProcessLock() -> SyncServiceBuilder
9940
9941
9942
+ /**
9943
+ * Enable the "offline" mode for the [`SyncService`].
9944
+ */
9945
+ func withOfflineMode() -> SyncServiceBuilder
9946
+
9941
9947
func withUtdHook(delegate: UnableToDecryptDelegate) async -> SyncServiceBuilder
9942
9948
9943
9949
}
@@ -10005,6 +10011,16 @@ open func withCrossProcessLock() -> SyncServiceBuilder {
10005
10011
uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_cross_process_lock(self.uniffiClonePointer(),$0
10006
10012
)
10007
10013
})
10014
+ }
10015
+
10016
+ /**
10017
+ * Enable the "offline" mode for the [`SyncService`].
10018
+ */
10019
+ open func withOfflineMode() -> SyncServiceBuilder {
10020
+ return try! FfiConverterTypeSyncServiceBuilder.lift(try! rustCall() {
10021
+ uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_offline_mode(self.uniffiClonePointer(),$0
10022
+ )
10023
+ })
10008
10024
}
10009
10025
10010
10026
open func withUtdHook(delegate: UnableToDecryptDelegate)async -> SyncServiceBuilder {
@@ -25348,6 +25364,7 @@ public enum SyncServiceState {
25348
25364
case running
25349
25365
case terminated
25350
25366
case error
25367
+ case offline
25351
25368
}
25352
25369
25353
25370
@@ -25366,6 +25383,8 @@ public struct FfiConverterTypeSyncServiceState: FfiConverterRustBuffer {
25366
25383
25367
25384
case 4: return .error
25368
25385
25386
+ case 5: return .offline
25387
+
25369
25388
default: throw UniffiInternalError.unexpectedEnumCase
25370
25389
}
25371
25390
}
@@ -25389,6 +25408,10 @@ public struct FfiConverterTypeSyncServiceState: FfiConverterRustBuffer {
25389
25408
case .error:
25390
25409
writeInt(&buf, Int32(4))
25391
25410
25411
+
25412
+ case .offline:
25413
+ writeInt(&buf, Int32(5))
25414
+
25392
25415
}
25393
25416
}
25394
25417
}
@@ -32007,7 +32030,7 @@ private var initializationResult: InitializationResult = {
32007
32030
if (uniffi_matrix_sdk_ffi_checksum_method_syncservice_state() != 61806) {
32008
32031
return InitializationResult.apiChecksumMismatch
32009
32032
}
32010
- if (uniffi_matrix_sdk_ffi_checksum_method_syncservice_stop() != 23138 ) {
32033
+ if (uniffi_matrix_sdk_ffi_checksum_method_syncservice_stop() != 42435 ) {
32011
32034
return InitializationResult.apiChecksumMismatch
32012
32035
}
32013
32036
if (uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_finish() != 22814) {
@@ -32016,6 +32039,9 @@ private var initializationResult: InitializationResult = {
32016
32039
if (uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_cross_process_lock() != 56326) {
32017
32040
return InitializationResult.apiChecksumMismatch
32018
32041
}
32042
+ if (uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_offline_mode() != 16958) {
32043
+ return InitializationResult.apiChecksumMismatch
32044
+ }
32019
32045
if (uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_utd_hook() != 9029) {
32020
32046
return InitializationResult.apiChecksumMismatch
32021
32047
}
0 commit comments