Struct gnunet_sys::GNUNET_TRANSPORT_SessionInfo[][src]

#[repr(C)]pub struct GNUNET_TRANSPORT_SessionInfo {
    pub state: GNUNET_TRANSPORT_SessionState,
    pub is_inbound: c_int,
    pub num_msg_pending: u32,
    pub num_bytes_pending: u32,
    pub receive_delay: GNUNET_TIME_Absolute,
    pub session_timeout: GNUNET_TIME_Absolute,
    pub address: *const GNUNET_HELLO_Address,
}

Information about a plugin’s session.

Fields

state: GNUNET_TRANSPORT_SessionState

New state of the session.

is_inbound: c_int

#GNUNET_YES if this is an inbound connection, #GNUNET_NO if this is an outbound connection, #GNUNET_SYSERR if connections of this plugin are so fundamentally bidirectional that they have no ‘initiator’

num_msg_pending: u32

Number of messages pending transmission for this session.

num_bytes_pending: u32

Number of bytes pending transmission for this session.

receive_delay: GNUNET_TIME_Absolute

Until when does this plugin refuse to receive to manage staying within the inbound quota? ZERO if receive is active.

session_timeout: GNUNET_TIME_Absolute

At what time will this session timeout (unless activity happens)?

address: *const GNUNET_HELLO_Address

Address used by the session. Can be NULL if none is available.

Trait Implementations

impl Clone for GNUNET_TRANSPORT_SessionInfo[src]

impl Copy for GNUNET_TRANSPORT_SessionInfo[src]

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