Lines Matching defs:highest
60 /// Finds the highest file descriptor in the set.
73 /// assert_eq!(set.highest(), Some(9));
77 pub fn highest(&self) -> Option<RawFd> {
99 pub fn fds(&self, highest: Option<RawFd>) -> Fds {
102 range: 0..highest.map(|h| h as usize + 1).unwrap_or(FD_SETSIZE),
162 /// * `nfds`: The highest file descriptor set in any of the passed `FdSet`s, plus 1. If `None`, this
163 /// is calculated automatically by calling [`FdSet::highest`] on all descriptor sets and adding 1
175 /// [`FdSet::highest`]: struct.FdSet.html#method.highest
200 .map(|set| set.highest().unwrap_or(-1))
241 /// * `nfds`: The highest file descriptor set in any of the passed `FdSet`s, plus 1. If `None`, this
242 /// is calculated automatically by calling [`FdSet::highest`] on all descriptor sets and adding 1
258 /// [`FdSet::highest`]: struct.FdSet.html#method.highest
283 .map(|set| set.highest().unwrap_or(-1))
355 assert_eq!(set.highest(), None);
357 assert_eq!(set.highest(), Some(0));
359 assert_eq!(set.highest(), Some(90));
361 assert_eq!(set.highest(), Some(90));
363 assert_eq!(set.highest(), None);
368 assert_eq!(set.highest(), Some(7));
380 // highest limit
418 Some(fd_set.highest().unwrap() + 1),