Lines Matching defs:FdSet

18 pub struct FdSet(libc::fd_set);
27 impl FdSet {
28 /// Create an empty `FdSet`
29 pub fn new() -> FdSet {
33 FdSet(fdset.assume_init())
37 /// Add a file descriptor to an `FdSet`
43 /// Remove a file descriptor from an `FdSet`
49 /// Test an `FdSet` for the presence of a certain file descriptor.
55 /// Remove all file descriptors from this `FdSet`.
69 /// # use nix::sys::select::FdSet;
70 /// let mut set = FdSet::new();
90 /// # use nix::sys::select::FdSet;
92 /// let mut set = FdSet::new();
107 impl Default for FdSet {
113 /// Iterator over `FdSet`.
116 set: &'a FdSet,
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
185 R: Into<Option<&'a mut FdSet>>,
186 W: Into<Option<&'a mut FdSet>>,
187 E: Into<Option<&'a mut FdSet>>,
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
267 R: Into<Option<&'a mut FdSet>>,
268 W: Into<Option<&'a mut FdSet>>,
269 E: Into<Option<&'a mut FdSet>>,
311 let mut fd_set = FdSet::new();
324 let mut fd_set = FdSet::new();
340 let mut fd_set = FdSet::new();
354 let mut set = FdSet::new();
373 let mut set = FdSet::new();
391 let mut fd_set = FdSet::new();
410 let mut fd_set = FdSet::new();
436 let mut fd_set = FdSet::new();