Enum libp2p_relay::v2::relay::Event
source · pub enum Event {
ReservationReqAccepted {
src_peer_id: PeerId,
renewed: bool,
},
ReservationReqAcceptFailed {
src_peer_id: PeerId,
error: UpgradeError,
},
ReservationReqDenied {
src_peer_id: PeerId,
},
ReservationReqDenyFailed {
src_peer_id: PeerId,
error: UpgradeError,
},
ReservationTimedOut {
src_peer_id: PeerId,
},
CircuitReqReceiveFailed {
src_peer_id: PeerId,
error: ConnectionHandlerUpgrErr<Void>,
},
CircuitReqDenied {
src_peer_id: PeerId,
dst_peer_id: PeerId,
},
CircuitReqDenyFailed {
src_peer_id: PeerId,
dst_peer_id: PeerId,
error: UpgradeError,
},
CircuitReqAccepted {
src_peer_id: PeerId,
dst_peer_id: PeerId,
},
CircuitReqOutboundConnectFailed {
src_peer_id: PeerId,
dst_peer_id: PeerId,
error: ConnectionHandlerUpgrErr<CircuitFailedReason>,
},
CircuitReqAcceptFailed {
src_peer_id: PeerId,
dst_peer_id: PeerId,
error: UpgradeError,
},
CircuitClosed {
src_peer_id: PeerId,
dst_peer_id: PeerId,
error: Option<Error>,
},
}
Expand description
The events produced by the Relay
behaviour.
Variants§
ReservationReqAccepted
Fields
An inbound reservation request has been accepted.
ReservationReqAcceptFailed
Accepting an inbound reservation request failed.
ReservationReqDenied
An inbound reservation request has been denied.
ReservationReqDenyFailed
Denying an inbound reservation request has failed.
ReservationTimedOut
An inbound reservation has timed out.
CircuitReqReceiveFailed
CircuitReqDenied
An inbound circuit request has been denied.
CircuitReqDenyFailed
Denying an inbound circuit request failed.
CircuitReqAccepted
An inbound cirucit request has been accepted.
CircuitReqOutboundConnectFailed
An outbound connect for an inbound cirucit request failed.
CircuitReqAcceptFailed
Accepting an inbound circuit request failed.
CircuitClosed
An inbound circuit has closed.