Struct gnunet_sys::GNUNET_SCHEDULER_TaskContext[][src]

#[repr(C)]pub struct GNUNET_SCHEDULER_TaskContext {
    pub reason: GNUNET_SCHEDULER_Reason,
    pub fds_len: c_uint,
    pub fds: *const GNUNET_SCHEDULER_FdInfo,
    pub read_ready: *const GNUNET_NETWORK_FDSet,
    pub write_ready: *const GNUNET_NETWORK_FDSet,
}

Context information passed to each scheduler task.

Fields

reason: GNUNET_SCHEDULER_Reason

Reason why the task is run now

fds_len: c_uint

Length of the following array.

fds: *const GNUNET_SCHEDULER_FdInfo

Array of length @e fds_len with information about ready FDs. Note that we use the same format regardless of the internal event loop that was used. The given array should only contain information about file descriptors relevant to the current task.

read_ready: *const GNUNET_NETWORK_FDSet

Set of file descriptors ready for reading; note that additional bits may be set that were not in the original request. @deprecated

write_ready: *const GNUNET_NETWORK_FDSet

Set of file descriptors ready for writing; note that additional bits may be set that were not in the original request. @deprecated

Trait Implementations

impl Clone for GNUNET_SCHEDULER_TaskContext[src]

impl Copy for GNUNET_SCHEDULER_TaskContext[src]

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