Enum libp2p_relay::client::Event
source · pub enum Event {
ReservationReqAccepted {
relay_peer_id: PeerId,
renewal: bool,
limit: Option<Limit>,
},
ReservationReqFailed {
relay_peer_id: PeerId,
renewal: bool,
error: StreamUpgradeError<ReservationFailedReason>,
},
OutboundCircuitEstablished {
relay_peer_id: PeerId,
limit: Option<Limit>,
},
OutboundCircuitReqFailed {
relay_peer_id: PeerId,
error: StreamUpgradeError<CircuitFailedReason>,
},
InboundCircuitEstablished {
src_peer_id: PeerId,
limit: Option<Limit>,
},
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: StreamUpgradeError<ReservationFailedReason>
OutboundCircuitEstablished
OutboundCircuitReqFailed
InboundCircuitEstablished
An inbound circuit has been established.
InboundCircuitReqDenied
An inbound circuit request has been denied.
InboundCircuitReqDenyFailed
Denying an inbound circuit request failed.
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