Home
last modified time | relevance | path

Searched refs:PollFd (Results 1 - 11 of 11) sorted by relevance

/third_party/rust/crates/nix/src/
H A Dpoll.rs14 /// retrieved by calling [`revents()`](#method.revents) on the `PollFd`.
17 pub struct PollFd { structure names
21 impl PollFd { impls
22 /// Creates a new `PollFd` specifying the events of interest
24 pub const fn new(fd: RawFd, events: PollFlags) -> PollFd {
25 PollFd {
45 /// This is marginally more efficient than [`PollFd::all`].
55 /// This is marginally less efficient than [`PollFd::any`].
60 /// The events of interest for this `PollFd`.
65 /// Modify the events of interest for this `PollFd`
[all...]
/third_party/rust/crates/nix/test/
H A Dtest_poll.rs3 poll::{poll, PollFd, PollFlags},
22 let mut fds = [PollFd::new(r, PollFlags::POLLIN)]; in test_poll()
54 let mut fds = [PollFd::new(r, PollFlags::POLLIN)]; in test_ppoll()
74 let pfd = PollFd::new(0x1234, PollFlags::empty()); in test_pollfd_fd()
80 let mut pfd = PollFd::new(-1, PollFlags::POLLIN); in test_pollfd_events()
/third_party/rust/crates/rustix/tests/net/
H A Dpoll.rs5 use rustix::io::{poll, PollFd, PollFlags};
43 let mut fds = [PollFd::new(&data_socket, PollFlags::IN)]; in server()
53 let mut fds = [PollFd::new(&data_socket, PollFlags::OUT)]; in server()
82 let mut fds = [PollFd::new(&data_socket, PollFlags::OUT)]; in client()
89 let mut fds = [PollFd::new(&data_socket, PollFlags::IN)]; in client()
/third_party/rust/crates/rustix/src/backend/libc/io/
H A Dpoll_fd.rs57 pub struct PollFd<'fd> { structure names
63 impl<'fd> fmt::Debug for PollFd<'fd> {
73 impl<'fd> PollFd<'fd> { in fmt() impls
74 /// Constructs a new `PollFd` holding `fd` and `events`. in fmt()
92 /// Constructs a new `PollFd` holding `fd` and `events`.
119 impl<'fd> AsFd for PollFd<'fd> {
129 impl<'fd> io_lifetimes::AsSocket for PollFd<'fd> {
H A Dwindows_syscalls.rs8 use crate::io::PollFd;
31 pub(crate) fn poll(fds: &mut [PollFd<'_>], timeout: c::c_int) -> io::Result<usize> {
H A Dsyscalls.rs25 use crate::io::{self, FdFlags, IoSlice, IoSliceMut, PollFd};
500 pub(crate) fn poll(fds: &mut [PollFd<'_>], timeout: c::c_int) -> io::Result<usize> {
/third_party/rust/crates/rustix/src/io/
H A Dpoll.rs3 pub use backend::io::poll_fd::{PollFd, PollFlags};
18 pub fn poll(fds: &mut [PollFd<'_>], timeout: i32) -> io::Result<usize> {
H A Dmod.rs76 pub use poll::{poll, PollFd, PollFlags};
/third_party/rust/crates/rustix/tests/io/
H A Dpoll.rs4 use rustix::io::{PollFd, PollFlags};
13 let mut poll_fds = [PollFd::new(&reader, PollFlags::IN)]; in test_poll()
53 let mut poll_fd = PollFd::new(&a, PollFlags::empty()); in test_poll_fd_set_fd()
/third_party/rust/crates/rustix/src/backend/linux_raw/io/
H A Dpoll_fd.rs40 pub struct PollFd<'fd> { structure names
46 impl<'fd> PollFd<'fd> { impls
47 /// Constructs a new `PollFd` holding `fd` and `events`.
65 /// Constructs a new `PollFd` holding `fd` and `events`.
88 impl<'fd> AsFd for PollFd<'fd> {
H A Dsyscalls.rs23 PollFd, ReadWriteFlags,
534 pub(crate) fn poll(fds: &mut [PollFd<'_>], timeout: c::c_int) -> io::Result<usize> {

Completed in 5 milliseconds