pub struct CoordinationInput<'a> {
pub context: &'a GitContext,
pub identity: &'a WorktreeIdentity,
pub command: &'a ResolvedCommand,
pub environment: &'a [(OsString, OsString)],
pub timeout_ms: u64,
}Expand description
What: The inputs of one coordination. Why: Named fields keep the call readable and satisfy the parameter-object rule.
In TS you’d write (pseudocode):
coordinateIndexWriter({ command, gitPath, timeoutMs, environment })Fields§
§context: &'a GitContextGit context of the invocation.
identity: &'a WorktreeIdentityThe repository shape the invocation selects.
command: &'a ResolvedCommandThe resolved forwarded command.
environment: &'a [(OsString, OsString)]The environment the invocation inherited, carrying any lease.
timeout_ms: u64indexLock.unprovenOwnerTimeoutMs.
Auto Trait Implementations§
impl<'a> Freeze for CoordinationInput<'a>
impl<'a> RefUnwindSafe for CoordinationInput<'a>
impl<'a> Send for CoordinationInput<'a>
impl<'a> Sync for CoordinationInput<'a>
impl<'a> Unpin for CoordinationInput<'a>
impl<'a> UnsafeUnpin for CoordinationInput<'a>
impl<'a> UnwindSafe for CoordinationInput<'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> 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