pub(crate) fn from_connection(connection: Connection) -> Self {
        assert!(!connection.is_handshaking());

        QuicMuxer {
            inner: Mutex::new(QuicMuxerInner {
                connection,
                substreams: Default::default(),
                poll_substream_opened_waker: None,
                poll_close_waker: None,
                writable_substreams: 0,
            }),
        }
    }
/// Crate-internal function that builds a [`QuicMuxer`] from a raw connection.
///
/// # Panic
///
/// Panics if `connection.is_handshaking()` returns `true`.
Crate-internal function that builds a [`QuicMuxer`] from a raw connection.
Crate - internal function that builds a [ ` QuicMuxer ` ] from a raw connection .
pub(crate) fn from_connection(connection: Connection) -> Self {
        assert!(!connection.is_handshaking());
        QuicMuxer {
            inner: Mutex::new(QuicMuxerInner {
                connection,
                substreams: Default::default(),
                poll_substream_opened_waker: None,
                poll_close_waker: None,
                writable_substreams: 0,
            }),
        }
    }
pub ( crate ) fn from_connection ( connection : Connection ) -> Self { assert ! ( connection is_handshaking ( ) ) ; QuicMuxer { inner : Mutex :: new ( QuicMuxerInner { connection , substreams : Default :: default ( ) , poll_substream_opened_waker : None , poll_close_waker : None , writable_substreams : 0 , } ) , } }
Crate-internal function that builds a [`QuicMuxer`] from a raw connection.
Crate - internal function that builds a [ ` QuicMuxer ` ] from a raw connection .
connection
Connection
connection
Connection
panic
Panics if `connection.is_handshaking()` returns `true`.
Panics if ` connection . is_handshaking () ` returns ` true ` .