1use std::sync::Arc;
2
3#[derive(Debug, Clone, Copy)]
5pub enum BackendModule {
6 #[cfg(feature = "backend-libdatachannel")]
8 LibDataChannel,
9
10 #[cfg(feature = "backend-go-pion")]
12 GoPion,
13}
14
15impl Default for BackendModule {
16 #[allow(unreachable_code)]
17 fn default() -> Self {
18 #[cfg(feature = "backend-libdatachannel")]
19 return Self::LibDataChannel;
20 #[cfg(feature = "backend-go-pion")]
21 Self::GoPion
22 }
23}
24
25#[derive(Default)]
27pub struct HubConfig {
28 pub backend_module: BackendModule,
30
31 pub signal_config: Arc<tx5_signal::SignalConfig>,
33
34 #[cfg(test)]
36 pub test_fail_webrtc: bool,
37}