Enum libp2p_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,
},
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: StreamUpgradeError<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.
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.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more