pub struct PidFile { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Drop for PidFile
impl Drop for PidFile
Source§fn drop(&mut self)
fn drop(&mut self)
Remove the file, but only while it is still ours.
Nothing stops a second rash being pointed at the same path: it truncates the file and writes its own pid, and without this check the first one to exit would then delete the survivor’s pid file, leaving a live supervisor that no watchdog can find.
Auto Trait Implementations§
impl Freeze for PidFile
impl RefUnwindSafe for PidFile
impl Send for PidFile
impl Sync for PidFile
impl Unpin for PidFile
impl UnsafeUnpin for PidFile
impl UnwindSafe for PidFile
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