#[repr(u32)]
pub enum grpc_cq_polling_type {
    GRPC_CQ_DEFAULT_POLLING,
    GRPC_CQ_NON_LISTENING,
    GRPC_CQ_NON_POLLING,
}
Expand description

Completion queues internally MAY maintain a set of file descriptors in a structure called ‘pollset’. This enum specifies if a completion queue has an associated pollset and any restrictions on the type of file descriptors that can be present in the pollset.

I/O progress can only be made when grpc_completion_queue_next() or grpc_completion_queue_pluck() are called on the completion queue (unless the grpc_cq_polling_type is GRPC_CQ_NON_POLLING) and hence it is very important to actively call these APIs

Variants

GRPC_CQ_DEFAULT_POLLING

The completion queue will have an associated pollset and there is no restriction on the type of file descriptors the pollset may contain

GRPC_CQ_NON_LISTENING

Similar to GRPC_CQ_DEFAULT_POLLING except that the completion queues will not contain any ‘listening file descriptors’ (i.e file descriptors used to listen to incoming channels)

GRPC_CQ_NON_POLLING

The completion queue will not have an associated pollset. Note that grpc_completion_queue_next() or grpc_completion_queue_pluck() MUST still be called to pop events from the completion queue; it is not required to call them actively to make I/O progress

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.