(name: &'static str, target_value: i64)
| 13 | |
| 14 | impl LinuxSysctl { |
| 15 | pub(crate) fn set(name: &'static str, target_value: i64) -> Result<Self> { |
| 16 | let previous = ensure_sysctl(name, target_value)?; |
| 17 | |
| 18 | Ok(Self { name, previous }) |
| 19 | } |
| 20 | |
| 21 | pub(crate) fn is_changed(&self) -> bool { |
| 22 | self.previous.is_some() |
no test coverage detected