Struct gnunet_sys::PingMessage[][src]

#[repr(C, packed)]pub struct PingMessage {
    pub header: GNUNET_MessageHeader,
    pub iv_seed: u32,
    pub target: GNUNET_PeerIdentity,
    pub challenge: u32,
}

We’re sending an (encrypted) PING to the other peer to check if it can decrypt. The other peer should respond with a PONG with the same content, except this time encrypted with the receiver’s key.

Fields

header: GNUNET_MessageHeader

Message type is #GNUNET_MESSAGE_TYPE_CORE_PING.

iv_seed: u32

Seed for the IV

target: GNUNET_PeerIdentity

Intended target of the PING, used primarily to check that decryption actually worked.

challenge: u32

Random number chosen to make replay harder.

Trait Implementations

impl Clone for PingMessage[src]

impl Copy for PingMessage[src]

impl Debug for PingMessage[src]

Auto Trait Implementations

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> 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.