pub struct RemoteWorktreeAgent {
pub peer_name: String,
/* private fields */
}Expand description
Runs Foreman subtasks on one peer CAR instance.
Fields§
§peer_name: StringPeer name as this host’s peer listing names it. Appears in the placement ledger and in every error, so an operator can tell which machine dropped a subtask.
Implementations§
Source§impl RemoteWorktreeAgent
impl RemoteWorktreeAgent
pub fn new( peer_name: impl Into<String>, base_url: impl Into<String>, identity: Option<Arc<PeerIdentity>>, repo: RepoFingerprint, run_id: impl Into<String>, ) -> Self
Sourcepub fn with_adapter(self, adapter: Option<String>) -> Self
pub fn with_adapter(self, adapter: Option<String>) -> Self
Ask the peer for a specific coding CLI. A peer that does not have it
declines rather than substituting — see car_fleet::worker.
Sourcepub fn with_timeout_secs(self, timeout_secs: Option<u64>) -> Self
pub fn with_timeout_secs(self, timeout_secs: Option<u64>) -> Self
Wall-clock bound the peer applies to its CLI invocation.
Trait Implementations§
Source§impl WorktreeAgent for RemoteWorktreeAgent
impl WorktreeAgent for RemoteWorktreeAgent
fn run_in<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
req: &'life1 WorktreeAgentRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Result<AgentRunSummary, ForemanError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for RemoteWorktreeAgent
impl RefUnwindSafe for RemoteWorktreeAgent
impl Send for RemoteWorktreeAgent
impl Sync for RemoteWorktreeAgent
impl Unpin for RemoteWorktreeAgent
impl UnsafeUnpin for RemoteWorktreeAgent
impl UnwindSafe for RemoteWorktreeAgent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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