Configures libp2p to use the given transport.
static Option transport(Transport transport) { return (config) => config.withTransport(transport); }