pub struct LoopInput<'a, F: RepositoryFacts> {Show 17 fields
pub invocation: &'a CommitInvocation<'a>,
pub workspace: &'a mut CommitWorkspace,
pub capture: &'a InvocationCapture,
pub mode: TransactionMode,
pub request: &'a StageRequest,
pub checks: &'a mut ShippedChecks<PrivateIndexFacts<F>>,
pub prepared: &'a PreparedCommit,
pub settled_events: Vec<PolicyEvent>,
pub options: &'a ReplayOptions,
pub global_args: &'a [String],
pub read_only_selection: bool,
pub committed_paths: Vec<String>,
pub added_paths: Vec<AddedPath>,
pub worktree_records: Vec<AddedPath>,
pub hook_changes: HookChanges,
pub index_lock_timeout_ms: u64,
pub reserve_after_lost_races: u64,
}Expand description
What: The inputs of the loop. Why: Replay and revalidation reuse the invocation’s facts.
In TS you’d write (pseudocode):
type LandingLoopInput = { context; mode; prepared; settled; options; committedPaths; addedPaths; worktreeRecords; hookChanges; indexLockTimeoutMs; reserveAfterLostRaces };Fields§
§invocation: &'a CommitInvocation<'a>The invocation’s fixed facts.
workspace: &'a mut CommitWorkspaceThe published workspace.
capture: &'a InvocationCaptureThe invocation capture.
mode: TransactionModeThe commit selection mode.
request: &'a StageRequestThe request the policies run under.
checks: &'a mut ShippedChecks<PrivateIndexFacts<F>>The shipped checks over the private index.
prepared: &'a PreparedCommitThe verified prepared commit.
settled_events: Vec<PolicyEvent>The settled preparation pass’s events with its fix summary.
options: &'a ReplayOptionsThe replay-relevant commit options.
global_args: &'a [String]The caller’s kept global options.
read_only_selection: boolWhether interactive or include selection forbids automatic patches.
committed_paths: Vec<String>The paths an explicit-path commit carries.
added_paths: Vec<AddedPath>The policy-added paths.
worktree_records: Vec<AddedPath>The worktree completions.
hook_changes: HookChangesWhat preparation hooks staged.
index_lock_timeout_ms: u64The backoff budget for a foreign index.lock.
reserve_after_lost_races: u64The lost landing races after which the transaction takes the landing reservation.
Auto Trait Implementations§
impl<'a, F> !RefUnwindSafe for LoopInput<'a, F>
impl<'a, F> !Send for LoopInput<'a, F>
impl<'a, F> !Sync for LoopInput<'a, F>
impl<'a, F> !UnwindSafe for LoopInput<'a, F>
impl<'a, F> Freeze for LoopInput<'a, F>
impl<'a, F> Unpin for LoopInput<'a, F>
impl<'a, F> UnsafeUnpin for LoopInput<'a, F>
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> 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