Enum libp2p_ping::Success
source · [−]pub enum Success {
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: DurationSent a ping and received back a pong.
Includes the round-trip time.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Success
impl Send for Success
impl Sync for Success
impl Unpin for Success
impl UnwindSafe for Success
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more