pub enum PidLockError {
AlreadyRunning {
pid: u32,
},
Io(Error),
}Expand description
Error acquiring or maintaining a PidLockGuard.
Variants§
AlreadyRunning
Another process already holds the exclusive lock on the pid file.
The inner pid is read back from the file’s contents; it is 0 if the file could
not be read or its contents could not be parsed as a PID.
Io(Error)
A filesystem error occurred while opening, locking, or writing the pid file.
Trait Implementations§
Source§impl Debug for PidLockError
impl Debug for PidLockError
Source§impl Display for PidLockError
impl Display for PidLockError
Source§impl Error for PidLockError
impl Error for PidLockError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for PidLockError
impl !UnwindSafe for PidLockError
impl Freeze for PidLockError
impl Send for PidLockError
impl Sync for PidLockError
impl Unpin for PidLockError
impl UnsafeUnpin for PidLockError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more