Struct nix::poll::PollFlags [−][src]
pub struct PollFlags { /* fields omitted */ }
Expand description
These flags define the different events that can be monitored by poll
and ppoll
Implementations
There is some exceptional condition on the file descriptor.
Possibilities include:
- There is out-of-band data on a TCP socket (see tcp(7)).
- A pseudoterminal master in packet mode has seen a state change on the slave (see ioctl_tty(2)).
- A cgroup.events file has been modified (see cgroups(7)).
Writing is now possible, though a write larger that the
available space in a socket or pipe will still block (unless
O_NONBLOCK
is set).
Equivalent to POLLIN
Equivalent to POLLOUT
Priority band data can be read (generally unused on Linux).
Priority data may be written.
Error condition (only returned in
PollFd::revents
;
ignored in PollFd::new
).
This bit is also set for a file descriptor referring to the
write end of a pipe when the read end has been closed.
Hang up (only returned in PollFd::revents
;
ignored in PollFd::new
).
Note that when reading from a channel such as a pipe or a stream
socket, this event merely indicates that the peer closed its
end of the channel. Subsequent reads from the channel will
return 0 (end of file) only after all outstanding data in the
channel has been consumed.
Invalid request: fd
not open (only returned in
PollFd::revents
;
ignored in PollFd::new
).
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Returns true
if there are flags common to both self
and other
.
Returns true
all of the flags in other
are contained within self
.
Trait Implementations
Disables all flags disabled in the set.
Adds the set of flags.
Toggles the set of flags.
Extends a collection with the contents of an iterator. Read more
extend_one
)Extends a collection with exactly one element.
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Disables all flags enabled in the set.
Auto Trait Implementations
impl RefUnwindSafe for PollFlags
impl UnwindSafe for PollFlags
Blanket Implementations
Mutably borrows from an owned value. Read more