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

§request_id: RequestId
§relay_addr: Multiaddr
§relay_peer_id: PeerId
§dst_addr: Option<Multiaddr>
§dst_peer_id: PeerId

Dial destination node via relay node.

§

ListenReq

Fields

§relay_peer_id: PeerId
§relay_addr: Multiaddr
§to_listener: Sender<ToListenerMsg>

Listen for incoming relayed connections via relay node.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.