Struct pid_file::PidFile [−][src]
Expand description
An open PID file.
A process that manages to construct this type holds an exclusive lock on the PID file.
Dropping the type will attempt to call remove
, but any
errors will be suppressed. Call remove
manually if you need to handle PID
file removal errors.
Tuple Fields
0: *mut pidfh
Implementations
Attempts to open and lock the specified PID file.
If the file is already locked by another process, it returns
Error::AlreadyRunning
.
Like open
, but opens the file with the specified
permissions rather than 0600.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PidFile
impl UnwindSafe for PidFile
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more