Struct nix::sys::select::FdSet [] [src]

#[repr(C)]
pub struct FdSet(_);

Methods

impl FdSet
[src]

[src]

[src]

[src]

[src]

[src]

[src]

Finds the highest file descriptor in the set.

Returns None if the set is empty.

This can be used to calculate the nfds parameter of the select function.

Example

let mut set = FdSet::new();
set.insert(4);
set.insert(9);
assert_eq!(set.highest(), Some(9));