[][src]Struct lib3h_p2p_protocol::p2p::MsgPong

pub struct MsgPong {
    pub ping_send_epoch_ms: u64,
    pub ping_received_epoch_ms: u64,
}

a response to a ping message

Fields

ping_send_epoch_ms: u64

copy the milliseconds since unix epoch from the triggering ping

ping_received_epoch_ms: u64

set our own machine milliseconds since unix epoch here can be used for heuristics about relative clock skew

Trait Implementations

impl Clone for MsgPong[src]

impl Debug for MsgPong[src]

impl<'de> Deserialize<'de> for MsgPong[src]

impl Eq for MsgPong[src]

impl Hash for MsgPong[src]

impl PartialEq<MsgPong> for MsgPong[src]

impl Serialize for MsgPong[src]

impl StructuralEq for MsgPong[src]

impl StructuralPartialEq for MsgPong[src]

Auto Trait Implementations

impl RefUnwindSafe for MsgPong

impl Send for MsgPong

impl Sync for MsgPong

impl Unpin for MsgPong

impl UnwindSafe for MsgPong

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.