Debian Codegraph @

third_party/rust/uniffi_bindgen/src/bindings/swift/templates/CallbackInterfaceRuntime.swift

raw
1 // Magic number for the Rust proxy to call using the same mechanism as every other method,
2 // to free the callback once it's dropped by Rust.
3 private let IDX_CALLBACK_FREE: Int32 = 0
4 // Callback return codes
5 private let UNIFFI_CALLBACK_SUCCESS: Int32 = 0
6 private let UNIFFI_CALLBACK_ERROR: Int32 = 1
7 private let UNIFFI_CALLBACK_UNEXPECTED_ERROR: Int32 = 2