Libp2p Swarm with Quic Transport

I am having trouble creating a libp2p swarm with a quic transport. The issue stems from Swarm needing to know that my Transport and StreamMuxer are separate entities. The issue is that Quic has multiplexing out of the box so my code below doesn't work.

pub async fn new_udp_swarm(key_pair: KeyPair) -> Result<Swarm<UdpBehaviour>, Box<dyn Error>> {
    let peer_id: PeerID = key_pair.public().to_peer_id();
    let transport: GenTransport<Provider> = new_udp_transport(key_pair.clone()).await?;
    let behaviour: UdpBehaviour = new_udp_behaviour(key_pair.clone()),await?;
    Ok(libp2p::Swarm::with_tokio_executor(transport, behaviour, peer_id))
pub async fn new_udp_transport(key_pair: KeyPair) -> std::io::Result<GenTransport<Provider>> {
    let config: Config = libp2p::quic::Config::new(&key_pair);
    let transport: GenTransport<Provider> = libp2p::quic::Transport::new(config);
pub async fn new_udp_behaviour(key_pair: KeyPair) -> Result<UdpBehaviour, Box<dyn Error>> {
    // code //

I assume I need to change my return for

pub async fn new_udp_transport(key_pair: KeyPair)




std::io::Result<transport::Boxed<(PeerId, StreamMuxerBox)>>

but am not sure how I would do this, or if it is even possible at the moment?
If not possible, then I may need to clarify my need through another discussion. Here is the best link I could find on this issue: