pub struct WaitFd { /* private fields */ }
Expand description

File descriptor to wait on for use with the wait method on a multi handle.

Implementations

Constructs an empty (invalid) WaitFd.

Set the file descriptor to wait for.

Indicate that the socket should poll on read events such as new data received.

Corresponds to CURL_WAIT_POLLIN.

Indicate that the socket should poll on high priority read events such as out of band data.

Corresponds to CURL_WAIT_POLLPRI.

Indicate that the socket should poll on write events such as the socket being clear to write without blocking.

Corresponds to CURL_WAIT_POLLOUT.

After a call to wait, returns true if poll_on_read was set and a read event occured.

After a call to wait, returns true if poll_on_priority_read was set and a priority read event occured.

After a call to wait, returns true if poll_on_write was set and a write event occured.

Trait Implementations

Formats the value using the given formatter. Read more

Converts to this type from the input type.

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 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.