pub struct VictauriState {Show 21 fields
pub event_log: EventLog,
pub registry: CommandRegistry,
pub port: AtomicU16,
pub pending_evals: PendingCallbacks,
pub recorder: EventRecorder,
pub privacy: PrivacyConfig,
pub eval_timeout: Duration,
pub shutdown_tx: Sender<bool>,
pub started_at: Instant,
pub tool_invocations: AtomicU64,
pub allow_file_navigation: bool,
pub command_timings: CommandTimings,
pub fault_registry: FaultRegistry,
pub contract_store: ContractStore,
pub startup_timeline: StartupTimeline,
pub event_bus: EventBusMonitor,
pub task_tracker: TaskTracker,
pub bridge_ready: AtomicBool,
pub bridge_notify: Notify,
pub screencast: Arc<Screencast>,
pub db_search_paths: Vec<PathBuf>,
}Expand description
Runtime state shared between the MCP server and all tool handlers.
Fields§
§event_log: EventLogRing-buffer event log for IPC calls, state changes, and DOM mutations.
registry: CommandRegistryRegistry of all discovered Tauri commands with metadata.
port: AtomicU16TCP port the MCP server listens on (may differ from configured port if fallback was used).
pending_evals: PendingCallbacksPending JavaScript eval callbacks awaiting webview responses.
recorder: EventRecorderSession recorder for time-travel debugging.
privacy: PrivacyConfigPrivacy configuration (tool disabling, command filtering, output redaction).
eval_timeout: DurationTimeout for JavaScript eval operations.
shutdown_tx: Sender<bool>Sends true to signal graceful MCP server shutdown.
started_at: InstantInstant the plugin was initialized, for uptime tracking.
tool_invocations: AtomicU64Total number of MCP tool invocations since startup.
Whether file: URLs are allowed in the navigate tool’s go_to action.
Defaults to false — only http and https are permitted unless opted in
via VictauriBuilder::allow_file_navigation.
command_timings: CommandTimingsPer-command execution timing for Rust-side profiling.
fault_registry: FaultRegistryActive fault injection rules for chaos engineering.
contract_store: ContractStoreRecorded IPC contract baselines for schema drift detection.
startup_timeline: StartupTimelinePlugin startup phase timestamps for performance analysis.
event_bus: EventBusMonitorCaptured Tauri event bus events (from listen_any).
task_tracker: TaskTrackerTracker for Victauri’s own spawned async tasks.
bridge_ready: AtomicBoolSet to true when any webview’s JS bridge sends its ready signal.
bridge_notify: NotifyNotifies waiters when the JS bridge ready signal arrives.
screencast: Arc<Screencast>Screencast state for the trace tool (background frame capture buffer).
db_search_paths: Vec<PathBuf>Extra absolute directories searched by query_db / introspect db_health
in addition to the OS app directories. Lets Victauri reach databases an
app stores outside the Tauri app-data dir (e.g. a project or working
directory). Opt in via VictauriBuilder::db_search_paths. Absolute
query_db paths are permitted only when they resolve within one of these
roots (or an app directory).