Struct gnunet_sys::GNUNET_SCHEDULER_FdInfo[][src]

#[repr(C)]pub struct GNUNET_SCHEDULER_FdInfo {
    pub fd: *const GNUNET_NETWORK_Handle,
    pub fh: *const GNUNET_DISK_FileHandle,
    pub et: GNUNET_SCHEDULER_EventType,
    pub sock: c_int,
}

Information about an event relating to a file descriptor/socket.

Fields

fd: *const GNUNET_NETWORK_Handle

GNUnet network socket the event is about, matches @a sock, NULL if this is about a file handle or if no network handle was given to the scheduler originally.

fh: *const GNUNET_DISK_FileHandle

GNUnet file handle the event is about, matches @a sock, NULL if this is about a network socket or if no network handle was given to the scheduler originally.

et: GNUNET_SCHEDULER_EventType

Type of the event that was generated related to @e sock.

sock: c_int

Underlying OS handle the event was about.

Trait Implementations

impl Clone for GNUNET_SCHEDULER_FdInfo[src]

impl Copy for GNUNET_SCHEDULER_FdInfo[src]

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