Struct leftwm_core::utils::child_process::Children
source · [−]pub struct Children { /* private fields */ }
Expand description
A struct managing children processes.
Implementations
sourceimpl 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
sourceimpl Extend<Child> for Children
impl Extend<Child> for Children
sourcefn 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
sourcefn 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.
sourcefn 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
sourceimpl FromIterator<Child> for Children
impl FromIterator<Child> for Children
sourcefn from_iter<T: IntoIterator<Item = Child>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = Child>>(iter: T) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Children
impl Send for Children
impl Sync for Children
impl Unpin for Children
impl UnwindSafe for Children
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more