()
| 51 | |
| 52 | impl SessionStatusManager { |
| 53 | pub fn new() -> Self { |
| 54 | Self { |
| 55 | state: Arc::new(RwLock::new(HashMap::new())), |
| 56 | bus: None, |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | /// Create a status manager with bus event publishing. |
| 61 | pub fn with_bus(bus: Arc<Bus>) -> Self { |