Enum libp2p_relay::v2::client::Event
source · pub enum Event {
ReservationReqAccepted {
relay_peer_id: PeerId,
renewal: bool,
limit: Option<Limit>,
},
ReservationReqFailed {
relay_peer_id: PeerId,
renewal: bool,
error: ConnectionHandlerUpgrErr<ReservationFailedReason>,
},
OutboundCircuitEstablished {
relay_peer_id: PeerId,
limit: Option<Limit>,
},
OutboundCircuitReqFailed {
relay_peer_id: PeerId,
error: ConnectionHandlerUpgrErr<CircuitFailedReason>,
},
InboundCircuitEstablished {
src_peer_id: PeerId,
limit: Option<Limit>,
},
InboundCircuitReqFailed {
relay_peer_id: PeerId,
error: ConnectionHandlerUpgrErr<Void>,
},
InboundCircuitReqDenied {
src_peer_id: PeerId,
},
InboundCircuitReqDenyFailed {
src_peer_id: PeerId,
error: UpgradeError,
},
}
Expand description
The events produced by the Client
behaviour.
Variants§
ReservationReqAccepted
Fields
An outbound reservation has been accepted.
ReservationReqFailed
Fields
§
error: ConnectionHandlerUpgrErr<ReservationFailedReason>
OutboundCircuitEstablished
OutboundCircuitReqFailed
InboundCircuitEstablished
An inbound circuit has been established.
InboundCircuitReqFailed
InboundCircuitReqDenied
An inbound circuit request has been denied.
InboundCircuitReqDenyFailed
Denying an inbound circuit request failed.