pub struct Client { /* fields omitted */ }
Expand description
Interface to access kernel taskstats API through the netlink socket.
Open netlink socket against kernel and create a new instance of Client
- when netlink socket initialization failed
- when kernel doesn’t offer family id for taskstats
Obtain taskstats for given task ID
tid
- Kernel task ID (could be either pid for per-task pid a.k.a tid)
TaskStats
storing the target task’s stats
- when netlink socket failed
- when kernel responded error
- when the returned data couldn’t be interpreted
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.