Struct mz_process_collector::ProcessCollector[][src]

pub struct ProcessCollector { /* fields omitted */ }

A collector which exports the current state of process metrics including cpu, memory and file descriptor usage as well as the process start time for the given process id.

Implementations

impl ProcessCollector[src]

pub fn new<S: Into<String>>(pid: pid_t, namespace: S) -> ProcessCollector[src]

Create a ProcessCollector with the given process id and namespace.

pub fn for_self() -> ProcessCollector[src]

Return a ProcessCollector of the calling process.

Trait Implementations

impl Collector for ProcessCollector[src]

impl Debug for ProcessCollector[src]

Auto Trait Implementations

impl RefUnwindSafe for ProcessCollector[src]

impl Send for ProcessCollector[src]

impl Sync for ProcessCollector[src]

impl Unpin for ProcessCollector[src]

impl UnwindSafe for ProcessCollector[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<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.