Skip to main content

from_queued

Function from_queued 

Source
pub(crate) fn from_queued(
    queued: QueuedConn,
    negotiated: &HashSet<ProtocolID>,
    task_group: &TaskGroup,
    stop_reason_tx: Sender<Result<()>>,
) -> Result<Arc<dyn Wire>>
Expand description

Build the right Wire for the post-handshake QueuedConn. Picks MuxConnection when QUIC is in use, SingleConnection otherwise. Only negotiated protocols get a recv queue, so a message for any other protocol is a protocol violation.

Never waits for the remote; see Wire::setup.