Function accept_with_buf_factory

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

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

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