swapoff

Function swapoff 

Source
pub fn swapoff<P: AsRef<Path>>(dest: P) -> Result<()>
Expand description

Unmounts a swap partition using libc::swapoff

ยงErrors

  • If the destination path is not a valid C String
  • Or the swapoff function fails