pub struct HubConfig {
pub backend_module: BackendModule,
pub signal_config: Arc<SignalConfig>,
pub webrtc_connect_timeout: Duration,
pub danger_force_signal_relay: bool,
pub danger_deny_signal_relay: bool,
}Expand description
Tx5 connection hub config.
Fields§
§backend_module: BackendModuleThe backend webrtc module to use.
signal_config: Arc<SignalConfig>The signal config to use.
webrtc_connect_timeout: DurationThe timeout for establishing a WebRTC connection to a peer.
After this time has elapsed, if a WebRTC connection has not been established, the connection
will fall back to using the signal server as a relay. Any timeout applied to the
[Conn::ready] or [Conn::send] futures should allow enough time for this timeout to
elapse and for the message to be sent over the relay.
danger_force_signal_relay: boolTest falling back to the signal relay by failing the WebRTC setup.
danger_deny_signal_relay: boolDeny using the signal server as a relay if direct connections fail.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HubConfig
impl RefUnwindSafe for HubConfig
impl Send for HubConfig
impl Sync for HubConfig
impl Unpin for HubConfig
impl UnwindSafe for HubConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more