Struct libp2p_ping::PingEvent
source · [−]pub struct PingEvent {
pub peer: PeerId,
pub result: PingResult,
}
Expand description
Event generated by the Ping
network behaviour.
Fields
peer: PeerId
The peer ID of the remote.
result: PingResult
The result of an inbound or outbound ping.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PingEvent
impl Send for PingEvent
impl !Sync for PingEvent
impl Unpin for PingEvent
impl !UnwindSafe for PingEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more