fn new_quic(
        config: &Arc<ClientConfig>,
        hostname: webpki::DNSNameRef,
        params: Vec<u8>,
    ) -> ClientSession {
        assert!(
            config
                .versions
                .iter()
                .all(|x| x.get_u16() >= ProtocolVersion::TLSv1_3.get_u16()),
            "QUIC requires TLS version >= 1.3"
        );
        let mut imp = ClientSessionImpl::new(config);
        imp.common.protocol = Protocol::Quic;
        imp.start_handshake(
            hostname.into(),
            vec![ClientExtension::TransportParameters(params)],
        );
        ClientSession { imp }
    }
/// Make a new QUIC ClientSession. This differs from `ClientSession::new()`
/// in that it takes an extra argument, `params`, which contains the
/// TLS-encoded transport parameters to send.
Make a new QUIC ClientSession. This differs from `ClientSession::new()`
in that it takes an extra argument, `params`, which contains the
TLS-encoded transport parameters to send.
Make a new QUIC ClientSession . This differs from ` ClientSession :: new () ` in that it takes an extra argument ` params ` which contains the TLS - encoded transport parameters to send .
fn new_quic(
        config: &Arc<ClientConfig>,
        hostname: webpki::DNSNameRef,
        params: Vec<u8>,
    ) -> ClientSession {
        assert!(
            config
                .versions
                .iter()
                .all(|x| x.get_u16() >= ProtocolVersion::TLSv1_3.get_u16()),
            "QUIC requires TLS version >= 1.3"
        );
        let mut imp = ClientSessionImpl::new(config);
        imp.common.protocol = Protocol::Quic;
        imp.start_handshake(
            hostname.into(),
            vec![ClientExtension::TransportParameters(params)],
        );
        ClientSession { imp }
    }
fn new_quic ( config : & Arc < ClientConfig > , hostname : webpki :: DNSNameRef , params : Vec < u8 > , ) -> ClientSession { assert ! ( config versions iter ( ) all ( x x get_u16 ( ) ProtocolVersion TLSv1_3 get_u16 ( ) ) " " ) ; let mut imp = ClientSessionImpl :: new ( config ) ; imp . common . protocol = Protocol :: Quic ; imp . start_handshake ( hostname . into ( ) , vec ! [ ClientExtension TransportParameters ( params ) ] , ) ; ClientSession { imp } }
Make a new QUIC ClientSession.
Make a new QUIC ClientSession .
config
&Arc<ClientConfig>
hostname
webpki::DNSNameRef
params
Vec<u8>
config
&Arc<ClientConfig>
hostname
webpki::DNSNameRef
params
Vec<u8>