Struct gnunet_sys::GNUNET_HELLO_Message[][src]

#[repr(C, packed)]pub struct GNUNET_HELLO_Message {
    pub header: GNUNET_MessageHeader,
    pub friend_only: u32,
    pub publicKey: GNUNET_CRYPTO_EddsaPublicKey,
}

A HELLO message is used to exchange information about transports with other peers. This struct is always followed by the actual network addresses which have the format:

  1. transport-name (0-terminated)
  2. address-length (uint16_t, network byte order; possibly unaligned!)
  3. address expiration (struct GNUNET_TIME_AbsoluteNBO); possibly unaligned!)
  4. address (address-length bytes; possibly unaligned!)

Fields

header: GNUNET_MessageHeader

Type will be #GNUNET_MESSAGE_TYPE_HELLO.

friend_only: u32

Use in F2F mode: Do not gossip this HELLO message

publicKey: GNUNET_CRYPTO_EddsaPublicKey

The public key of the peer.

Trait Implementations

impl Clone for GNUNET_HELLO_Message[src]

impl Copy for GNUNET_HELLO_Message[src]

impl Debug for GNUNET_HELLO_Message[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.