Expand description
Implementation of the libp2p Transport
trait for external transports.
This Transport
is used in the context of WASM to allow delegating the transport mechanism
to the code that uses rust-libp2p, as opposed to inside of rust-libp2p itself.
Note: This only allows transports that produce a raw stream with the remote. You couldn’t, for example, pass an implementation QUIC.
Usage
Call new()
with a JavaScript object that implements the interface described in the ffi
module.
Modules
- Contains the definition that one must match on the JavaScript side.
Structs
- Active stream of data with a remote.
- Future that dial a remote through an external transport.
- Implementation of
Transport
whose implementation is handled by some FFI. - Error that can be generated by the
ExtTransport
. - Stream that listens for incoming connections through an external transport.