pub struct DaemonPidGuard { /* private fields */ }Expand description
Drop guard for a claimed daemon-pid singleton. On drop, removes the pidfile only if it still names the pid we wrote — protects against the case where another daemon raced in after we exited the singleton check but before we wrote, and we don’t want to wipe their record on our exit.
Trait Implementations§
Source§impl Drop for DaemonPidGuard
impl Drop for DaemonPidGuard
Auto Trait Implementations§
impl Freeze for DaemonPidGuard
impl RefUnwindSafe for DaemonPidGuard
impl Send for DaemonPidGuard
impl Sync for DaemonPidGuard
impl Unpin for DaemonPidGuard
impl UnsafeUnpin for DaemonPidGuard
impl UnwindSafe for DaemonPidGuard
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