[−][src]Struct taskstats::TaskstatsListener
Taskstats listener for stats of exited tasks
Implementations
impl TaskstatsListener
[src]
pub fn register(
conn: TaskstatsConnection,
cpu_mask: Box<CStr>
) -> Result<Self, Error>
[src]
conn: TaskstatsConnection,
cpu_mask: Box<CStr>
) -> Result<Self, Error>
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
impl RefUnwindSafe for TaskstatsListener
impl Send for TaskstatsListener
impl Sync for TaskstatsListener
impl Unpin for TaskstatsListener
impl UnwindSafe for TaskstatsListener
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,