pidfile
Module: pidfile
Section titled “Module: pidfile”Contents
Section titled “Contents”Functions
mtime- Return pidfile modification time if the file exists.read- Read a pid file.remove- Remove a pid file if present.write- Write a pid file.
firma_stack::pidfile::mtime
Section titled “firma_stack::pidfile::mtime”Function
Return pidfile modification time if the file exists.
Errors
Section titled “Errors”Returns filesystem metadata errors other than not-found.
fn mtime(path: &std::path::Path) -> crate::error::Result<Option<std::time::SystemTime>>firma_stack::pidfile::read
Section titled “firma_stack::pidfile::read”Function
Read a pid file.
Errors
Section titled “Errors”Returns filesystem errors other than not-found.
fn read(path: &std::path::Path) -> crate::error::Result<Option<u32>>firma_stack::pidfile::remove
Section titled “firma_stack::pidfile::remove”Function
Remove a pid file if present.
Errors
Section titled “Errors”Returns filesystem errors other than not-found.
fn remove(path: &std::path::Path) -> crate::error::Result<()>firma_stack::pidfile::write
Section titled “firma_stack::pidfile::write”Function
Write a pid file.
Errors
Section titled “Errors”Returns filesystem errors.
fn write(path: &std::path::Path, pid: u32) -> crate::error::Result<()>