(
state: State<'_, AppState>,
app: tauri::AppHandle,
startup_trace: State<'_, DesktopStartupTrace>,
)
| 2021 | |
| 2022 | #[tauri::command] |
| 2023 | pub 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 | |
| 2040 | pub async fn prepare_workspace_startup_bootstrap_snapshot( |
| 2041 | state: &State<'_, AppState>, |
nothing calls this directly
no test coverage detected