Enum libp2p_relay::Event
source · pub enum Event {
ReservationReqAccepted {
src_peer_id: PeerId,
renewed: bool,
},
ReservationReqAcceptFailed {
src_peer_id: PeerId,
error: Error,
},
ReservationReqDenied {
src_peer_id: PeerId,
},
ReservationReqDenyFailed {
src_peer_id: PeerId,
error: Error,
},
ReservationTimedOut {
src_peer_id: PeerId,
},
CircuitReqDenied {
src_peer_id: PeerId,
dst_peer_id: PeerId,
},
CircuitReqDenyFailed {
src_peer_id: PeerId,
dst_peer_id: PeerId,
error: Error,
},
CircuitReqAccepted {
src_peer_id: PeerId,
dst_peer_id: PeerId,
},
CircuitReqOutboundConnectFailed {
src_peer_id: PeerId,
dst_peer_id: PeerId,
error: Error,
},
CircuitReqAcceptFailed {
src_peer_id: PeerId,
dst_peer_id: PeerId,
error: Error,
},
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
Fields
§
src_peer_id: PeerId
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
§
error: Error
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
Accepting an inbound reservation request failed.
ReservationReqDenied
An inbound reservation request has been denied.
ReservationReqDenyFailed
Fields
§
src_peer_id: PeerId
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
§
error: Error
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
Denying an inbound reservation request has failed.
ReservationTimedOut
An inbound reservation has timed out.
CircuitReqDenied
An inbound circuit request has been denied.
CircuitReqDenyFailed
Fields
§
src_peer_id: PeerId
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
§
dst_peer_id: PeerId
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
§
error: Error
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
Denying an inbound circuit request failed.
CircuitReqAccepted
An inbound cirucit request has been accepted.
CircuitReqOutboundConnectFailed
Fields
§
src_peer_id: PeerId
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
§
dst_peer_id: PeerId
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
§
error: Error
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
An outbound connect for an inbound cirucit request failed.
CircuitReqAcceptFailed
Fields
§
src_peer_id: PeerId
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
§
dst_peer_id: PeerId
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
§
error: Error
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
👎Deprecated: Will be removed in favor of logging them internally, see https://github.com/libp2p/rust-libp2p/issues/4757 for details.
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