pub struct LandedTransactionPaths<'a> {
pub shadow: &'a Path,
pub directory: &'a Path,
pub git_dir: &'a Path,
pub registry_root: &'a Path,
}Expand description
What:
The paths of one landed transaction that disposal removes or reads.
Why:
Named fields keep the four paths apart at the call site, and the struct is Copy so one value serves every step.
In TS you’d write (pseudocode):
type LandedTransactionPaths = { shadowPath: string; directory: string; gitDir: string; registryRoot: string };Fields§
§shadow: &'a PathShadow repository derived from the transaction ID.
directory: &'a PathDurable transaction directory under the registry.
git_dir: &'a PathReal Git directory holding the capture store.
registry_root: &'a PathTransaction registry root whose published entries pin landed records.
Trait Implementations§
Source§impl<'a> Clone for LandedTransactionPaths<'a>
impl<'a> Clone for LandedTransactionPaths<'a>
impl<'a> Copy for LandedTransactionPaths<'a>
Auto Trait Implementations§
impl<'a> Freeze for LandedTransactionPaths<'a>
impl<'a> RefUnwindSafe for LandedTransactionPaths<'a>
impl<'a> Send for LandedTransactionPaths<'a>
impl<'a> Sync for LandedTransactionPaths<'a>
impl<'a> Unpin for LandedTransactionPaths<'a>
impl<'a> UnsafeUnpin for LandedTransactionPaths<'a>
impl<'a> UnwindSafe for LandedTransactionPaths<'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
Mutably borrows from an owned value. Read more
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> ⓘ
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