Skip to main content

Module traits

Module traits 

Source
Expand description

Abstraction traits that decouple vector-core from any specific UI framework.

Tauri, CLI, SDK, or any other frontend implements these traits to integrate with vector-core. The core library never imports tauri directly.

Structs§

NoOpEmitter
A no-op emitter for headless/test contexts.
NoOpProgressReporter
A no-op progress reporter.
NoOpSubscriptionRefresher

Traits§

EventEmitter
Emits events to the UI layer (Tauri frontend, CLI output, SDK callbacks).
ProgressReporter
Trait for reporting download/upload progress.
SubscriptionRefresher
Refreshes the integration layer’s live channel subscription set.

Functions§

emit_event
Emit an event to the UI layer. No-op if no emitter is registered.
emit_event_json
Emit a raw JSON value event to the UI layer.
has_event_emitter
Check if an event emitter is registered.
refresh_subscriptions
set_event_emitter
Register the global event emitter. Call once during app startup.
set_subscription_refresher