Lines Matching refs:PollFlags
3 poll::{poll, PollFd, PollFlags},
22 let mut fds = [PollFd::new(r, PollFlags::POLLIN)];
27 assert!(!fds[0].revents().unwrap().contains(PollFlags::POLLIN));
34 assert!(fds[0].revents().unwrap().contains(PollFlags::POLLIN));
54 let mut fds = [PollFd::new(r, PollFlags::POLLIN)];
60 assert!(!fds[0].revents().unwrap().contains(PollFlags::POLLIN));
67 assert!(fds[0].revents().unwrap().contains(PollFlags::POLLIN));
74 let pfd = PollFd::new(0x1234, PollFlags::empty());
80 let mut pfd = PollFd::new(-1, PollFlags::POLLIN);
81 assert_eq!(pfd.events(), PollFlags::POLLIN);
82 pfd.set_events(PollFlags::POLLOUT);
83 assert_eq!(pfd.events(), PollFlags::POLLOUT);