Struct pals::Proc[][src]

pub struct Proc<'a> { /* fields omitted */ }

A process agent by which pid,ppid,arguments/argv, parent and child processes can be accessed.

Implementations

impl<'a> Proc<'a>[src]

pub fn parent(&self) -> Option<Self>[src]

Gets parent process.

pub fn children(&self) -> Self[src]

Gets child processes.

Methods from Deref<Target = Process>

pub fn argv(&self) -> impl Iterator<Item = &str>[src]

Returns arguments iterator.

Trait Implementations

impl<'a> Clone for Proc<'a>[src]

impl<'a> Copy for Proc<'a>[src]

impl<'a> Debug for Proc<'a>[src]

impl<'a> Deref for Proc<'a>[src]

type Target = Process

The resulting type after dereferencing.

impl<'a> ExactSizeIterator for Proc<'a>[src]

impl<'a> Iterator for Proc<'a>[src]

type Item = Self

The type of the elements being iterated over.

impl<'a> Split for Proc<'a>[src]

type Item = &'a Process

type Iter = Self

Auto Trait Implementations

impl<'a> RefUnwindSafe for Proc<'a>[src]

impl<'a> Send for Proc<'a>[src]

impl<'a> Sync for Proc<'a>[src]

impl<'a> Unpin for Proc<'a>[src]

impl<'a> UnwindSafe for Proc<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> TupleTree<T, ()> for T[src]