Skip to main content

init

Function init 

Source
pub fn init<R: Runtime>(config: SyncularConfig) -> TauriPlugin<R>
Expand description

Initialize the plugin with a config. Register with tauri::Builder::default().plugin(tauri_plugin_syncular::init(config)).

The owning thread is spawned in setup; it builds the core (native transport if base_url + the native-transport feature), pumps events onto EVENT_NAME, and runs the §8.4 host loop. The mailbox Sender is managed as plugin state and torn down on RunEvent::Exit.