Trait tx5::Config

source ·
pub trait Config: 'static + Send + Sync {
    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: Value, seed: ConnStateSeed);
}
Expand description

Tx5 config trait.

Required Methods§

Get the max pending send byte count limit.

Get the max queued recv byte count limit.

Get the max concurrent connection limit.

Get the max init (connect) time for a connection.

Request the prometheus registry used by this config.

Request the lair client associated with this config.

Request the lair tag associated with this config.

A request to open a new signal server connection.

A request to open a new peer connection.

Trait Implementations§

Formats the value using the given formatter. Read more

Implementors§