pub enum TransportToBehaviourMsg {
DialReq {
request_id: RequestId,
relay_addr: Multiaddr,
relay_peer_id: PeerId,
dst_addr: Option<Multiaddr>,
dst_peer_id: PeerId,
send_back: Sender<Result<RelayedConnection, ()>>,
},
ListenReq {
relay_peer_id: PeerId,
relay_addr: Multiaddr,
to_listener: Sender<ToListenerMsg>,
},
}
Expand description
Message from the ClientTransport
to the Relay
NetworkBehaviour
.
Variants§
DialReq
Fields
§
send_back: Sender<Result<RelayedConnection, ()>>
Dial destination node via relay node.
ListenReq
Listen for incoming relayed connections via relay node.