Skip to main content

Module models

Module models 

Source
Expand description

Data types shared between the plugin’s Rust core and the JS/Tauri layer.

Structs§

PluginConfig
Plugin-level configuration, deserialized from the Tauri plugin config.
ServiceContext
Passed into both init and run. Gives your service everything it needs to interact with the outside world.
ServiceStatus
Snapshot of the service lifecycle status.
StartConfig
Optional startup configuration forwarded from JS through the plugin.

Enums§

PluginEvent
Built-in event types emitted by the runner itself.
ServiceState
Lifecycle state of the background service.

Constants§

VALID_FOREGROUND_SERVICE_TYPES
The 14 valid Android foreground service types.

Functions§

validate_foreground_service_type
Validate a foreground service type against the allowlist.