use crate::raw::taskstats_v9;
#[derive(Debug)]
#[non_exhaustive]
pub struct Taskstats {
pub read_bytes: u64,
pub write_bytes: u64,
pub cancelled_write_bytes: u64,
}
impl From<&taskstats_v9> for Taskstats {
fn from(raw: &taskstats_v9) -> Self {
Self {
read_bytes: raw.read_bytes.get(),
write_bytes: raw.write_bytes.get(),
cancelled_write_bytes: raw.cancelled_write_bytes.get(),
}
}
}