Struct leftwm_core::utils::child_process::Children
source · 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
trueifchildis a new child-processfalseifchildis 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