[][src]Struct taskstats::TaskstatsListener

pub struct TaskstatsListener { /* fields omitted */ }

Taskstats listener for stats of exited tasks

Implementations

impl TaskstatsListener[src]

pub fn register(
    conn: TaskstatsConnection,
    cpu_mask: Box<CStr>
) -> Result<Self, Error>
[src]

Registers the a taskstats listener on the given CPU mask.

pub fn deregister(self) -> Result<TaskstatsConnection, Error>[src]

Deregisters this taskstats listener and returns the internal connection.

pub fn get_next(&mut self) -> Result<(pid_t, Taskstats), Error>[src]

Returns the next exit taskstats. It blocks if nothing is available.

Trait Implementations

impl Drop for TaskstatsListener[src]

Auto Trait Implementations

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.