Struct gnunet_sys::GNUNET_ATS_Properties[][src]

#[repr(C)]pub struct GNUNET_ATS_Properties {
    pub delay: GNUNET_TIME_Relative,
    pub utilization_out: u32,
    pub utilization_in: u32,
    pub distance: c_uint,
    pub scope: GNUNET_NetworkType,
}

ATS performance characteristics for an address.

Fields

delay: GNUNET_TIME_Relative

Delay. Time between when the time packet is sent and the packet arrives. FOREVER if we did not measure yet.

utilization_out: u32

Actual traffic on this connection from this peer to the other peer. Includes transport overhead.

Unit: [bytes/second]

utilization_in: u32

Actual traffic on this connection from the other peer to this peer. Includes transport overhead.

Unit: [bytes/second]

distance: c_uint

Distance on network layer (required for distance-vector routing) in hops. Zero for direct connections (i.e. plain TCP/UDP).

scope: GNUNET_NetworkType

Which network scope does the respective address belong to? This property does not change.

Trait Implementations

impl Clone for GNUNET_ATS_Properties[src]

impl Copy for GNUNET_ATS_Properties[src]

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