pub struct VictauriState {
pub event_log: EventLog,
pub registry: CommandRegistry,
pub port: u16,
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,
}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: u16TCP port the MCP server listens on.
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.
Auto Trait Implementations§
impl !Freeze for VictauriState
impl !RefUnwindSafe for VictauriState
impl Send for VictauriState
impl Sync for VictauriState
impl Unpin for VictauriState
impl UnsafeUnpin for VictauriState
impl !UnwindSafe for VictauriState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more