pub struct Children { /* private fields */ }
Expand description
A struct managing children processes.
Implementations§
Source§impl Children
impl Children
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn insert(&mut self, child: Child) -> bool
pub fn insert(&mut self, child: Child) -> bool
Insert a Child
in the Children
.
§Returns
true
ifchild
is a new child-processfalse
ifchild
is already known
Sourcepub fn remove_finished_children(&mut self)
pub fn remove_finished_children(&mut self)
Remove all children precosses which finished
Trait Implementations§
Source§impl Extend<Child> for Children
impl Extend<Child> for Children
Source§fn extend<T: IntoIterator<Item = Child>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Child>>(&mut self, iter: T)
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
Auto Trait Implementations§
impl Freeze for Children
impl RefUnwindSafe for Children
impl Send for Children
impl Sync for Children
impl Unpin for Children
impl UnwindSafe for Children
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