Struct libp2p_ping::Event
source · pub struct Event {
pub peer: PeerId,
pub connection: ConnectionId,
pub result: Result<Duration, Failure>,
}
Expand description
Event generated by the Ping
network behaviour.
Fields§
§peer: PeerId
The peer ID of the remote.
connection: ConnectionId
The connection the ping was executed on.
result: Result<Duration, Failure>
The result of an inbound or outbound ping.
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