[][src]Trait heim::process::os::linux::ProcessExt

pub trait ProcessExt {
    fn io_counters(
        &self
    ) -> Pin<Box<dyn Future<Output = Result<IoCounters, ProcessError>> + Send>>;
fn net_io_counters(
        &self
    ) -> Pin<Box<dyn Stream<Item = Result<IoCounters, ProcessError>> + Send>>; }

Linux-specific extension to Process

Required methods

fn io_counters(
    &self
) -> Pin<Box<dyn Future<Output = Result<IoCounters, ProcessError>> + Send>>

Returns future which resolves into process IO counters.

Since -> impl Trait is not allowed yet in the traits, this method returns boxed Future. This behavior will change later.

fn net_io_counters(
    &self
) -> Pin<Box<dyn Stream<Item = Result<IoCounters, ProcessError>> + Send>>

Returns stream which yield this process IO counters for each network interface.

Since -> impl Trait is not allowed yet in the traits, this method returns boxed Stream. This behavior will change later.

Loading content...

Implementors

impl ProcessExt for Process[src]

Loading content...