pub struct Opts {
pub repo: PathBuf,
pub config: Option<PathBuf>,
pub poll: Duration,
pub max_attempts: usize,
pub once: bool,
pub merge: Option<String>,
pub worktrees_root: Option<PathBuf>,
}Expand description
How the loop should behave.
Fields§
§repo: PathBufRepository used by tasks that name none.
config: Option<PathBuf>Explicit magi.toml, instead of the discovered layer stack.
poll: DurationQueue poll interval.
max_attempts: usizeAttempts a task gets before it is held for a human.
once: boolDrain what is runnable now, then return, instead of waiting for more.
merge: Option<String>Merge mode override (none, local, pr); None keeps the config’s.
worktrees_root: Option<PathBuf>Where the janitor’s crate::clean::fold_orphaned_worktrees and
crate::git::worktree_prune look for and reclaim worktrees.
None resolves to crate::run::default_worktree_root - the
operator’s real ~/wt/<repo> - the same way a run with no
crate::config::Graph::worktree_root resolves its own. A caller
that does not own that directory (a test, an embedding that manages
worktrees itself) must set this, or every idle tick reclaims worktrees
out from under whoever actually does.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Opts
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnsafeUnpin for Opts
impl UnwindSafe for Opts
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