Copy as Markdown

Other Tools

// This file was autogenerated by some hot garbage in the `uniffi` crate.
// Trust me, you don't want to mess with it!
::uniffi::setup_scaffolding!("tabs");
/// Export info about the UDL while used to create us
/// See `uniffi_bindgen::macro_metadata` for how this is used.
// ditto for info about the UDL which spawned us.
const UNIFFI_META_CONST_UDL_TABS: ::uniffi::MetadataBuffer = ::uniffi::MetadataBuffer::from_code(::uniffi::metadata::codes::UDL_FILE)
.concat_str("tabs")
.concat_str("tabs")
.concat_str("tabs");
#[doc(hidden)]
#[no_mangle]
pub static UNIFFI_META_UDL_TABS: [u8; UNIFFI_META_CONST_UDL_TABS.size] = UNIFFI_META_CONST_UDL_TABS.into_array();
// Enum definitions, corresponding to `enum` in UDL.
#[::uniffi::udl_derive(Enum)]
enum r#RemoteCommand {
r#CloseTab {
r#url: ::std::string::String,
},
}
// Error definitions, corresponding to `error` in the UDL.
#[::uniffi::udl_derive(Error)]
enum r#TabsApiError {
r#SyncError {
r#reason: ::std::string::String,
},
r#SqlError {
r#reason: ::std::string::String,
},
r#UnexpectedTabsError {
r#reason: ::std::string::String,
},
}
// Record definitions, implemented as method-less structs, corresponding to `dictionary` objects.
#[::uniffi::udl_derive(Record)]
struct r#ClientRemoteTabs {
r#client_id: ::std::string::String,
r#client_name: ::std::string::String,
r#device_type: r#DeviceType,
r#last_modified: i64,
r#remote_tabs: std::vec::Vec<r#RemoteTabRecord>,
}
#[::uniffi::udl_derive(Record)]
struct r#PendingCommand {
r#device_id: ::std::string::String,
r#command: r#RemoteCommand,
r#time_requested: r#Timestamp,
r#time_sent: ::std::option::Option<r#Timestamp>,
}
#[::uniffi::udl_derive(Record)]
struct r#RemoteTabRecord {
r#title: ::std::string::String,
r#url_history: std::vec::Vec<::std::string::String>,
r#icon: ::std::option::Option<::std::string::String>,
r#last_used: i64,
r#inactive: bool,
}
// Top level functions, corresponding to UDL `namespace` functions.// Object definitions, corresponding to UDL `interface` definitions.
#[::uniffi::udl_derive(Object)]
struct r#RemoteCommandStore { }
#[::uniffi::export_for_udl]
impl r#RemoteCommandStore {
pub fn r#add_remote_command(
&self,
r#device_id: &::std::string::String,
r#command: &r#RemoteCommand,
) -> ::std::result::Result::<bool, r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#RemoteCommandStore {
pub fn r#add_remote_command_at(
&self,
r#device_id: &::std::string::String,
r#command: &r#RemoteCommand,
r#when: r#Timestamp,
) -> ::std::result::Result::<bool, r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#RemoteCommandStore {
pub fn r#get_unsent_commands(
&self,
) -> ::std::result::Result::<std::vec::Vec<r#PendingCommand>, r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#RemoteCommandStore {
pub fn r#remove_remote_command(
&self,
r#device_id: &::std::string::String,
r#command: &r#RemoteCommand,
) -> ::std::result::Result::<bool, r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#RemoteCommandStore {
pub fn r#set_pending_command_sent(
&self,
r#command: &r#PendingCommand,
) -> ::std::result::Result::<bool, r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::udl_derive(Object)]
struct r#TabsBridgedEngine { }
#[::uniffi::export_for_udl]
impl r#TabsBridgedEngine {
pub fn r#apply(
&self,
) -> ::std::result::Result::<std::vec::Vec<::std::string::String>, r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsBridgedEngine {
pub fn r#ensure_current_sync_id(
&self,
r#new_sync_id: &::std::string::String,
) -> ::std::result::Result::<::std::string::String, r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsBridgedEngine {
pub fn r#last_sync(
&self,
) -> ::std::result::Result::<i64, r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsBridgedEngine {
pub fn r#prepare_for_sync(
&self,
r#client_data: &::std::string::String,
) -> ::std::result::Result::<(), r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsBridgedEngine {
pub fn r#reset(
&self,
) -> ::std::result::Result::<(), r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsBridgedEngine {
pub fn r#reset_sync_id(
&self,
) -> ::std::result::Result::<::std::string::String, r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsBridgedEngine {
pub fn r#set_last_sync(
&self,
r#last_sync: i64,
) -> ::std::result::Result::<(), r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsBridgedEngine {
pub fn r#set_uploaded(
&self,
r#new_timestamp: i64,
r#uploaded_ids: std::vec::Vec<r#TabsGuid>,
) -> ::std::result::Result::<(), r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsBridgedEngine {
pub fn r#store_incoming(
&self,
r#incoming_envelopes_as_json: std::vec::Vec<::std::string::String>,
) -> ::std::result::Result::<(), r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsBridgedEngine {
pub fn r#sync_finished(
&self,
) -> ::std::result::Result::<(), r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsBridgedEngine {
pub fn r#sync_id(
&self,
) -> ::std::result::Result::<::std::option::Option<::std::string::String>, r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsBridgedEngine {
pub fn r#sync_started(
&self,
) -> ::std::result::Result::<(), r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsBridgedEngine {
pub fn r#wipe(
&self,
) -> ::std::result::Result::<(), r#TabsApiError>
{
unreachable!()
}
}
#[::uniffi::udl_derive(Object)]
struct r#TabsStore { }
#[::uniffi::export_for_udl]
impl r#TabsStore {
#[uniffi::constructor]
pub fn r#new(
r#path: ::std::string::String,
) -> ::std::sync::Arc<r#TabsStore>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsStore {
pub fn r#bridged_engine(
self: Arc<Self>,
) -> ::std::sync::Arc<r#TabsBridgedEngine>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsStore {
pub fn r#close_connection(
&self,
)
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsStore {
pub fn r#get_all(
&self,
) -> std::vec::Vec<r#ClientRemoteTabs>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsStore {
pub fn r#new_remote_command_store(
self: Arc<Self>,
) -> ::std::sync::Arc<r#RemoteCommandStore>
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsStore {
pub fn r#register_with_sync_manager(
self: Arc<Self>,
)
{
unreachable!()
}
}
#[::uniffi::export_for_udl]
impl r#TabsStore {
pub fn r#set_local_tabs(
&self,
r#remote_tabs: std::vec::Vec<r#RemoteTabRecord>,
)
{
unreachable!()
}
}
// Callback Interface definitions, corresponding to UDL `callback interface` definitions.
// External and Wrapped types
// Support for external types.
// Types with an external `FfiConverter`...
// The FfiConverter for `DeviceType` is defined in `sync15`
// If it has its existing FfiConverter defined with a UniFFITag, it needs forwarding.
::uniffi::ffi_converter_forward!(r#DeviceType, ::r#sync15::UniFfiTag, crate::UniFfiTag);
// We generate support for each Custom Type and the builtin type it uses.
::uniffi::custom_type!(r#TabsGuid, ::std::string::String);
::uniffi::custom_type!(r#Timestamp, i64);
// Export scaffolding checksums for UDL items
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_remotecommandstore_add_remote_command() -> u16 {
11837
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_remotecommandstore_add_remote_command_at() -> u16 {
49793
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_remotecommandstore_get_unsent_commands() -> u16 {
62092
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_remotecommandstore_remove_remote_command() -> u16 {
19318
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_remotecommandstore_set_pending_command_sent() -> u16 {
59831
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsbridgedengine_apply() -> u16 {
40956
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsbridgedengine_ensure_current_sync_id() -> u16 {
34052
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsbridgedengine_last_sync() -> u16 {
56171
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsbridgedengine_prepare_for_sync() -> u16 {
49464
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsbridgedengine_reset() -> u16 {
15243
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsbridgedengine_reset_sync_id() -> u16 {
59348
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsbridgedengine_set_last_sync() -> u16 {
64083
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsbridgedengine_set_uploaded() -> u16 {
1599
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsbridgedengine_store_incoming() -> u16 {
49801
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsbridgedengine_sync_finished() -> u16 {
33662
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsbridgedengine_sync_id() -> u16 {
10877
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsbridgedengine_sync_started() -> u16 {
19846
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsbridgedengine_wipe() -> u16 {
21505
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsstore_bridged_engine() -> u16 {
43478
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsstore_close_connection() -> u16 {
6630
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsstore_get_all() -> u16 {
1572
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsstore_new_remote_command_store() -> u16 {
26531
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsstore_register_with_sync_manager() -> u16 {
1224
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_method_tabsstore_set_local_tabs() -> u16 {
10534
}
#[no_mangle]
#[doc(hidden)]
pub extern "C" fn r#uniffi_tabs_checksum_constructor_tabsstore_new() -> u16 {
15515
}