Struct gnunet_sys::GNUNET_HELLO_Address[][src]

#[repr(C)]pub struct GNUNET_HELLO_Address {
    pub peer: GNUNET_PeerIdentity,
    pub transport_name: *const c_char,
    pub address: *const c_void,
    pub address_length: usize,
    pub local_info: GNUNET_HELLO_AddressInfo,
}

An address for communicating with a peer. We frequently need this tuple and the components cannot really be separated. This is NOT the format that would be used on the wire.

Fields

peer: GNUNET_PeerIdentity

For which peer is this an address?

transport_name: *const c_char

Name of the transport plugin enabling the communication using this address.

address: *const c_void

Binary representation of the address (plugin-specific).

address_length: usize

Number of bytes in @e address.

local_info: GNUNET_HELLO_AddressInfo

Extended information about address

This field contains additional #GNUNET_HELLO_AddressInfo flags e.g. to indicate an address is inbound and cannot be used to initiate an outbound connection.

These information are only valid for the local peer and are not serialized when a #GNUNET_HELLO_Message is created

Trait Implementations

impl Clone for GNUNET_HELLO_Address[src]

impl Copy for GNUNET_HELLO_Address[src]

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