pub struct FdSet(/* private fields */);Expand description
File descriptor set for the virtual system
This is an implementation of the FdSet trait for the
VirtualSystem. It represents a set of file
descriptors that can be monitored for events such as readability or
writability in the virtual system. Currently, the FdSet struct internally
uses a BTreeSet to store the file descriptors, which allows for efficient
insertion, removal, and lookup of file descriptors.
Implementations§
Trait Implementations§
Source§impl<'a> Extend<&'a Fd> for FdSet
impl<'a> Extend<&'a Fd> for FdSet
Source§fn extend<I: IntoIterator<Item = &'a Fd>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = &'a Fd>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl Extend<Fd> for FdSet
impl Extend<Fd> for FdSet
Source§fn extend<I: IntoIterator<Item = Fd>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = Fd>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FdSet for FdSet
impl FdSet for FdSet
Source§impl FromIterator<Fd> for FdSet
impl FromIterator<Fd> for FdSet
Source§impl<'a> IntoIterator for &'a FdSet
impl<'a> IntoIterator for &'a FdSet
Source§impl IntoIterator for FdSet
impl IntoIterator for FdSet
impl Eq for FdSet
impl StructuralPartialEq for FdSet
Auto Trait Implementations§
impl Freeze for FdSet
impl RefUnwindSafe for FdSet
impl Send for FdSet
impl Sync for FdSet
impl Unpin for FdSet
impl UnsafeUnpin for FdSet
impl UnwindSafe for FdSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more