pub trait Config: 'static + Send + Sync {
// Required methods
fn max_send_bytes(&self) -> u32;
fn max_recv_bytes(&self) -> u32;
fn max_conn_count(&self) -> u32;
fn max_conn_init(&self) -> Duration;
fn metrics(&self) -> &Registry;
fn lair_client(&self) -> &LairClient;
fn lair_tag(&self) -> &Arc<str>;
fn on_new_sig(&self, sig_url: Tx5Url, seed: SigStateSeed);
fn on_new_conn(&self, ice_servers: Arc<Value>, seed: ConnStateSeed);
}Expand description
Tx5 config trait.
Required Methods§
sourcefn max_send_bytes(&self) -> u32
fn max_send_bytes(&self) -> u32
Get the max pending send byte count limit.
sourcefn max_recv_bytes(&self) -> u32
fn max_recv_bytes(&self) -> u32
Get the max queued recv byte count limit.
sourcefn max_conn_count(&self) -> u32
fn max_conn_count(&self) -> u32
Get the max concurrent connection limit.
sourcefn max_conn_init(&self) -> Duration
fn max_conn_init(&self) -> Duration
Get the max init (connect) time for a connection.
sourcefn lair_client(&self) -> &LairClient
fn lair_client(&self) -> &LairClient
Request the lair client associated with this config.
sourcefn on_new_sig(&self, sig_url: Tx5Url, seed: SigStateSeed)
fn on_new_sig(&self, sig_url: Tx5Url, seed: SigStateSeed)
A request to open a new signal server connection.
sourcefn on_new_conn(&self, ice_servers: Arc<Value>, seed: ConnStateSeed)
fn on_new_conn(&self, ice_servers: Arc<Value>, seed: ConnStateSeed)
A request to open a new peer connection.