type BoxedTransport = Boxed<(PeerId, StreamMuxerBox)>;
Expand description

BoxedTransport is a type alias for a boxed tuple containing a PeerId and a StreamMuxerBox.

This type is used to represent a transport in the libp2p network framework. The PeerId is a unique identifier for each peer in the network, and the StreamMuxerBox is a type of multiplexer that can handle multiple substreams over a single connection.

Aliased Type§

struct BoxedTransport {
    inner: Box<dyn Abstract<(PeerId, StreamMuxerBox)> + Send + Unpin>,
}

Fields§

§inner: Box<dyn Abstract<(PeerId, StreamMuxerBox)> + Send + Unpin>