Struct libp2p::ping::PingEvent [−][src]
pub struct PingEvent {
pub peer: PeerId,
pub result: Result<PingSuccess, PingFailure>,
}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.