Function connect_with_buffer_factory

Source
pub fn connect_with_buffer_factory<F: BufFactory>(
    server_name: Option<&str>,
    scid: &ConnectionId<'_>,
    local: SocketAddr,
    peer: SocketAddr,
    config: &mut Config,
) -> Result<Connection<F>>
Expand description

Creates a new client-side connection, with a custom buffer generation method.

The buffers generated can be anything that can be drereferenced as a byte slice. See connect and BufFactory for more info.