pub fn open<P>(path: P) -> Result<PidFile, Error>
    where
        P: AsRef<Path>,
    {
        PidFile::open_with(path, Permissions::from_mode(0o600))
    }
/// Attempts to open and lock the specified PID file.
///
/// If the file is already locked by another process, it returns
/// `Error::AlreadyRunning`.
Attempts to open and lock the specified PID file.
If the file is already locked by another process, it returns
`Error::AlreadyRunning`.
Attempts to open and lock the specified PID file . If the file is already locked by another process it returns ` Error :: AlreadyRunning ` .
pub fn open<P>(path: P) -> Result<PidFile, Error>
    where
        P: AsRef<Path>,
    {
        PidFile::open_with(path, Permissions::from_mode(0o600))
    }
pub fn open < P > ( path : P ) -> Result < PidFile , Error > where P : AsRef < Path > , { PidFile :: open_with ( path , Permissions :: from_mode ( 0o600 ) ) }
Attempts to open and lock the specified PID file.
Attempts to open and lock the specified PID file .
path
P
path
P