Struct libp2p::ping::PingEvent [−][src]
pub struct PingEvent {
pub peer: PeerId,
pub result: Result<PingSuccess, PingFailure>,
}Expand description
Event generated by the Ping network behaviour.
Fields
peer: PeerIdThe peer ID of the remote.
result: Result<PingSuccess, PingFailure>The result of an inbound or outbound ping.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PingEventimpl !UnwindSafe for PingEvent