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