Struct nanomsg::PollFd [−][src]
pub struct PollFd { /* fields omitted */ }
A request for polling a socket and the poll result.
To create the request, see Socket::new_pollfd
.
To get the result, see PollFd::can_read
and PollFd::can_write
.
Methods
impl PollFd
[src]
impl PollFd
pub fn can_read(&self) -> bool
[src]
pub fn can_read(&self) -> bool
Checks whether at least one message can be received from the socket without blocking.
pub fn can_write(&self) -> bool
[src]
pub fn can_write(&self) -> bool
Checks whether at least one message can be sent to the fd socket without blocking.
Trait Implementations
impl Clone for PollFd
[src]
impl Clone for PollFd
fn clone(&self) -> PollFd
[src]
fn clone(&self) -> PollFd
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for PollFd
[src]
impl Copy for PollFd