pub struct PidFileGuard { /* private fields */ }Expand description
Removes the pid file on drop — but only while the file still holds the record this guard wrote, so a lingering guard can never delete a successor incarnation’s claim.
Implementations§
Source§impl PidFileGuard
impl PidFileGuard
Sourcepub fn reconciliation(&self) -> &StaleReconciliation
pub fn reconciliation(&self) -> &StaleReconciliation
What claim found and reconciled when this guard was created.
Sourcepub fn holds_claim(&self) -> bool
pub fn holds_claim(&self) -> bool
Whether this guard’s incarnation holds the home’s claim. False for a
server that booted UNCLAIMED over another live claimant’s record
(StaleReconciliation::LiveIncarnationElsewhere): the control verbs
address the recorded server, not this one.
Trait Implementations§
Source§impl Debug for PidFileGuard
impl Debug for PidFileGuard
Source§impl Drop for PidFileGuard
impl Drop for PidFileGuard
Auto Trait Implementations§
impl Freeze for PidFileGuard
impl RefUnwindSafe for PidFileGuard
impl Send for PidFileGuard
impl Sync for PidFileGuard
impl Unpin for PidFileGuard
impl UnsafeUnpin for PidFileGuard
impl UnwindSafe for PidFileGuard
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request