Enum libp2p_ping::handler::PingSuccess
source · [−]pub enum PingSuccess {
Pong,
Ping {
rtt: Duration,
},
}
Expand description
The successful result of processing an inbound or outbound ping.
Variants
Pong
Received a ping and sent back a pong.
Ping
Fields
rtt: Duration
Sent a ping and received back a pong.
Includes the round-trip time.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PingSuccess
impl Send for PingSuccess
impl Sync for PingSuccess
impl Unpin for PingSuccess
impl UnwindSafe for PingSuccess
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