Function
start_record
(selected_device: State<'_, SelectedDevice>, record_channel: State<'_, RecordChannel>)
Source from the content-addressed store, hash-verified
| 120 | |
| 121 | #[tauri::command] |
| 122 | async fn start_record(selected_device: State<'_, SelectedDevice>, record_channel: State<'_, RecordChannel>) -> Result<(), ()> { |
| 123 | let selected_device = selected_device.lock().unwrap().clone(); |
| 124 | record_channel.send(recorder::RecordCommand::Start(selected_device)).await.unwrap(); |
| 125 | |
| 126 | Ok(()) |
| 127 | } |
| 128 | |
| 129 | #[tauri::command] |
| 130 | fn start_transcription(window: Window, general_config: State<GeneralConfig>, smtp_config: State<SMTPConfig>, transcriber: State<Arc<Mutex<transcriber::Transcriber>>>, media_path: String) { |
Callers
nothing calls this directly
Tested by
no test coverage detected