func (c *conn) IsClosed() bool {
	return c.sess.Context().Err() != nil
}
IsClosed returns whether a connection is fully closed.
package libp2pquic
import (
	"context"
	ic "github.com/libp2p/go-libp2p-core/crypto"
	"github.com/libp2p/go-libp2p-core/mux"
	"github.com/libp2p/go-libp2p-core/peer"
	tpt "github.com/libp2p/go-libp2p-core/transport"
	quic "github.com/lucas-clemente/quic-go"
	ma "github.com/multiformats/go-multiaddr"
)
type conn struct {
	sess      quic.Session
	transport tpt.Transport
	localPeer      peer.ID
	privKey        ic.PrivKey
	localMultiaddr ma.Multiaddr
	remotePeerID    peer.ID
	remotePubKey    ic.PubKey
	remoteMultiaddr ma.Multiaddr
}
var _ tpt.CapableConn = &conn{}
func (c *conn) Close() error {
	return c.sess.CloseWithError(0, "")
}