MCPcopy Create free account
hub / github.com/GCWing/BitFun / initialize_workspace_startup_state

Function initialize_workspace_startup_state

src/apps/desktop/src/api/commands.rs:2023–2038  ·  view source on GitHub ↗
(
    state: State<'_, AppState>,
    app: tauri::AppHandle,
    startup_trace: State<'_, DesktopStartupTrace>,
)

Source from the content-addressed store, hash-verified

2021
2022#[tauri::command]
2023pub async fn initialize_workspace_startup_state(
2024 state: State<'_, AppState>,
2025 app: tauri::AppHandle,
2026 startup_trace: State<'_, DesktopStartupTrace>,
2027) -> Result<WorkspaceStartupStateSnapshotDto, String> {
2028 let command_started = Instant::now();
2029 let result =
2030 initialize_workspace_startup_state_impl(&state, &app, &startup_trace, command_started)
2031 .await;
2032 startup_trace.record_tauri_command_elapsed(
2033 "initialize_workspace_startup_state",
2034 None,
2035 command_started,
2036 );
2037 result
2038}
2039
2040pub async fn prepare_workspace_startup_bootstrap_snapshot(
2041 state: &State<'_, AppState>,

Callers

nothing calls this directly

Tested by

no test coverage detected