Skip to main content

pair_server_config

Function pair_server_config 

Source
pub fn pair_server_config(
    identity: &Identity,
    config: &PairConfig,
) -> Result<ServerConfig, PeerError>
Expand description

The server configuration of a pairing connection: identity, any client certificate whose key is proven, config’s ALPN and policy. A server on one port serves it to clients that offer the pairing ALPN (asynch::accept_with) and its own configuration to the rest.

§Errors

As ServerBuilder::build.