Struct nix::sys::select::FdSet [−][src]
#[repr(transparent)]pub struct FdSet(_);
Implementations
impl FdSet
[src]
impl FdSet
[src]pub fn new() -> FdSet
[src]
pub fn insert(&mut self, fd: RawFd)
[src]
pub fn remove(&mut self, fd: RawFd)
[src]
pub fn contains(&mut self, fd: RawFd) -> bool
[src]
pub fn clear(&mut self)
[src]
pub fn fds(&mut self, highest: Option<RawFd>) -> Fds<'_>ⓘ
[src]
pub fn fds(&mut self, highest: Option<RawFd>) -> Fds<'_>ⓘ
[src]Returns an iterator over the file descriptors in the set.
For performance, it takes an optional higher bound: the iterator will not return any elements of the set greater than the given file descriptor.
Examples
let mut set = FdSet::new(); set.insert(4); set.insert(9); let fds: Vec<RawFd> = set.fds(None).collect(); assert_eq!(fds, vec![4, 9]);
Trait Implementations
impl Copy for FdSet
[src]
impl Eq for FdSet
[src]
impl StructuralEq for FdSet
[src]
impl StructuralPartialEq for FdSet
[src]
Auto Trait Implementations
impl RefUnwindSafe for FdSet
impl Send for FdSet
impl Sync for FdSet
impl Unpin for FdSet
impl UnwindSafe for FdSet
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more