pub struct LockAcquired {
pub guard: LockGuard,
pub broke_lock: bool,
}Expand description
Outcome of a successful lock acquisition. Callers attach a
lock_broken event to their own envelope when broke_lock is
true, so the audit trail follows the same conventions as the
rest of the command’s output.
Fields§
§guard: LockGuard§broke_lock: boolTrue iff --break-lock was set AND the helper actually
removed a pre-existing apply.lock file before acquiring.
False when the file didn’t exist (nothing to break) — the
flag was a no-op in that case so no warning is warranted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LockAcquired
impl RefUnwindSafe for LockAcquired
impl Send for LockAcquired
impl Sync for LockAcquired
impl Unpin for LockAcquired
impl UnsafeUnpin for LockAcquired
impl UnwindSafe for LockAcquired
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more