Struct curl::multi::WaitFd [] [src]

pub struct WaitFd { /* fields omitted */ }

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

Methods

impl WaitFd
[src]

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

impl From<pollfd> for WaitFd
[src]

Performs the conversion.

impl Debug for WaitFd
[src]

Formats the value using the given formatter.