Function libp2p_relay::v1::new_transport_and_behaviour
source · [−]pub fn new_transport_and_behaviour<T: Transport + Clone>(
config: RelayConfig,
transport: T
) -> (RelayTransport<T>, Relay)
Expand description
Create both a RelayTransport
wrapping the provided Transport
as well as a Relay
NetworkBehaviour
.
Interconnects the returned RelayTransport
and Relay
.