Function libp2p::relay::new_transport_and_behaviour[][src]

pub fn new_transport_and_behaviour<T>(
    config: RelayConfig,
    transport: T
) -> (RelayTransport<T>, Relay) where
    T: Transport + Clone
Expand description

Create both a RelayTransport wrapping the provided Transport as well as a Relay NetworkBehaviour.

Interconnects the returned RelayTransport and Relay.