pub fn build_transport(
keypair: Keypair,
memory_only: bool,
) -> (Boxed<(PeerId, StreamMuxerBox)>, Arc<BandwidthSinks>)Expand description
Builds the transport that serves as a common ground for all connections.
If memory_only is true, then only communication within the same process are allowed. Only
addresses with the format /memory/... are allowed.
Returns a BandwidthSinks object that allows querying the average bandwidth produced by all
the connections spawned with this transport.