Function libp2p::build_development_transport [−][src]
pub fn build_development_transport(
keypair: Keypair
) -> Result<impl Transport<Output = (PeerId, impl StreamMuxer<OutboundSubstream = impl Send, Substream = impl Send, Error = impl Into<Error>> + Send + Sync), Error = impl Error + Send, Listener = impl Send, Dial = impl Send, ListenerUpgrade = impl Send> + Clone>
Builds a Transport
that supports the most commonly-used protocols that libp2p supports.
Note: This
Transport
is not suitable for production usage, as its implementation reserves the right to support additional protocols or remove deprecated protocols.