pub enum PidfileError {
AlreadyRunning {
pid: Option<pid_t>,
},
Io(Error),
NulError(NulError),
}
Variants§
AlreadyRunning
The file cannot be locked. The pid
field contains the PID of the
already running process or None
in case it did not write
its PID yet.
Io(Error)
An I/O error has occurred.
NulError(NulError)
An interior NUL byte was found in the path.
Trait Implementations§
Source§impl Debug for PidfileError
impl Debug for PidfileError
Source§impl Display for PidfileError
impl Display for PidfileError
Source§impl Error for PidfileError
impl Error for PidfileError
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()
Source§impl From<Error> for PidfileError
impl From<Error> for PidfileError
Auto Trait Implementations§
impl Freeze for PidfileError
impl !RefUnwindSafe for PidfileError
impl Send for PidfileError
impl Sync for PidfileError
impl Unpin for PidfileError
impl !UnwindSafe for PidfileError
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