pub struct WaitFd { /* private fields */ }
Expand description
File descriptor to wait on for use with the wait
method on a multi handle.
Implementations
sourceimpl WaitFd
impl WaitFd
sourcepub fn poll_on_read(&mut self, val: bool) -> &mut WaitFd
pub fn poll_on_read(&mut self, val: bool) -> &mut WaitFd
Indicate that the socket should poll on read events such as new data received.
Corresponds to CURL_WAIT_POLLIN
.
sourcepub fn poll_on_priority_read(&mut self, val: bool) -> &mut WaitFd
pub fn poll_on_priority_read(&mut self, val: bool) -> &mut WaitFd
Indicate that the socket should poll on high priority read events such as out of band data.
Corresponds to CURL_WAIT_POLLPRI
.
sourcepub fn poll_on_write(&mut self, val: bool) -> &mut WaitFd
pub fn poll_on_write(&mut self, val: bool) -> &mut WaitFd
Indicate that the socket should poll on write events such as the socket being clear to write without blocking.
Corresponds to CURL_WAIT_POLLOUT
.
sourcepub fn received_read(&self) -> bool
pub fn received_read(&self) -> bool
After a call to wait
, returns true
if poll_on_read
was set and a
read event occured.
sourcepub fn received_priority_read(&self) -> bool
pub fn received_priority_read(&self) -> bool
After a call to wait
, returns true
if poll_on_priority_read
was set and a
priority read event occured.
sourcepub fn received_write(&self) -> bool
pub fn received_write(&self) -> bool
After a call to wait
, returns true
if poll_on_write
was set and a
write event occured.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WaitFd
impl Send for WaitFd
impl Sync for WaitFd
impl Unpin for WaitFd
impl UnwindSafe for WaitFd
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more