pub struct BackendLockCtx<'a> {
pub parent_meta: &'a Path,
pub child_path: &'a str,
}Expand description
Per-call backend-lock context (v1.3.2 B11).
The per-repo backend lock lives at
<parent_meta>/.grex/locks/<child_path>.backend.lock (parent-owned) so
it (a) survives a rm -rf <dest> rebuild and (b) keeps every lock
artifact under one .grex/ namespace per meta. This struct threads the
(parent_meta, child_path) pair through the GitBackend surface so
the backend can compute the lock path without re-deriving it from
dest (which would lose intermediate / segments on slash-paths).
child_path is the LITERAL manifest-declared path (e.g. tools/foo)
— POSIX forward slashes, no slug encoding. Intermediate directories
under <parent_meta>/.grex/locks/ are auto-created on first acquire.
Fields§
§parent_meta: &'a PathWorkdir of the meta-pack that owns the child clone (meta_dir in
the walker terminology). Lock files live under
<parent_meta>/.grex/locks/.
child_path: &'a strManifest-declared child path (e.g. "tools/foo"). Used verbatim
as the suffix of the backend-lock filename.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for BackendLockCtx<'a>
impl<'a> Clone for BackendLockCtx<'a>
Source§fn clone(&self) -> BackendLockCtx<'a>
fn clone(&self) -> BackendLockCtx<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for BackendLockCtx<'a>
impl<'a> Debug for BackendLockCtx<'a>
impl<'a> Copy for BackendLockCtx<'a>
Auto Trait Implementations§
impl<'a> Freeze for BackendLockCtx<'a>
impl<'a> RefUnwindSafe for BackendLockCtx<'a>
impl<'a> Send for BackendLockCtx<'a>
impl<'a> Sync for BackendLockCtx<'a>
impl<'a> Unpin for BackendLockCtx<'a>
impl<'a> UnsafeUnpin for BackendLockCtx<'a>
impl<'a> UnwindSafe for BackendLockCtx<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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