use dsp_thomann::dsp408::DSP408; use std::collections::HashMap; use std::sync::{Arc, Mutex}; pub struct DSPDevice { pub dsp: DSP408, } pub struct AppState { pub devices: Mutex>>>, pub next_id: Mutex, } impl AppState { pub fn new() -> Self { Self { devices: Mutex::new(HashMap::new()), next_id: Mutex::new(1), } } }