Struct rd_util::iocost::IoCostSysSave
source · pub struct IoCostSysSave {
pub devnr: (u32, u32),
pub enable: bool,
pub model_ctrl_user: bool,
pub qos_ctrl_user: bool,
pub model: IoCostModelParams,
pub qos: IoCostQoSParams,
}
Expand description
Save /sys/fs/cgroup/io.cost.model,qos and restore them on drop.
Fields§
§devnr: (u32, u32)
§enable: bool
§model_ctrl_user: bool
§qos_ctrl_user: bool
§model: IoCostModelParams
§qos: IoCostQoSParams
Implementations§
source§impl IoCostSysSave
impl IoCostSysSave
pub fn read_from_sys(devnr: (u32, u32)) -> Result<Self>
pub fn write_to_sys(&self) -> Result<()>
Trait Implementations§
source§impl Default for IoCostSysSave
impl Default for IoCostSysSave
source§fn default() -> IoCostSysSave
fn default() -> IoCostSysSave
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IoCostSysSave
impl RefUnwindSafe for IoCostSysSave
impl Send for IoCostSysSave
impl Sync for IoCostSysSave
impl Unpin for IoCostSysSave
impl UnwindSafe for IoCostSysSave
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more