pub fn remove(mut self) -> Result<(), Error> {
        let r = unsafe { pidfile_remove(self.0) };
        // Set the pointer to null to prevent drop from calling remove again.
        self.0 = ptr::null_mut();
        if r == 0 {
            Ok(())
        } else {
            Err(Error::Io(io::Error::last_os_error()))
        }
    }
/// Closes the PID file and removes it from the filesystem.
Closes the PID file and removes it from the filesystem.
Closes the PID file and removes it from the filesystem .
pub fn remove(mut self) -> Result<(), Error> {
        let r = unsafe { pidfile_remove(self.0) };
        // Set the pointer to null to prevent drop from calling remove again.
        self.0 = ptr::null_mut();
        if r == 0 {
            Ok(())
        } else {
            Err(Error::Io(io::Error::last_os_error()))
        }
    }
pub fn remove ( mut self ) -> Result < ( ) , Error > { let r = unsafe { pidfile_remove ( self . 0 ) } ; // Set the pointer to null to prevent drop from calling remove again. self . 0 = ptr :: null_mut ( ) ; if r == 0 { Ok ( ( ) ) } else { Err ( Error :: Io ( io :: Error :: last_os_error ( ) ) ) } }
Closes the PID file and removes it from the filesystem.
Closes the PID file and removes it from the filesystem .
mut self
mut self