pub struct NewTask {
pub title: String,
pub project_path: String,
pub model_id: String,
pub priority: TaskPriority,
pub conversation_id: Option<String>,
pub owner_kind: Option<String>,
}Fields§
§title: String§project_path: String§model_id: String§priority: TaskPriority§conversation_id: Option<String>§owner_kind: Option<String>Which kind of process owns this task. Some("daemon") (set via
Self::daemon_owned) marks a task the daemon runs in-process, so the
startup reconcile may fail it if a crash left it Running. None — the
default, used by interactive CLI runs and any other creator — is left
untouched by reconcile so a live session isn’t clobbered (F18/RC-E).
Implementations§
Source§impl NewTask
impl NewTask
pub fn new( title: impl Into<String>, project_path: impl Into<String>, model_id: impl Into<String>, ) -> NewTask
Sourcepub fn daemon_owned(self) -> NewTask
pub fn daemon_owned(self) -> NewTask
Mark this task as daemon-owned (run in the daemon process). Only such
tasks are reset by RuntimeStore::reconcile_after_restart; omit it for
interactive CLI runs so they survive a daemon restart.
Trait Implementations§
impl Eq for NewTask
impl StructuralPartialEq for NewTask
Auto Trait Implementations§
impl Freeze for NewTask
impl RefUnwindSafe for NewTask
impl Send for NewTask
impl Sync for NewTask
impl Unpin for NewTask
impl UnsafeUnpin for NewTask
impl UnwindSafe for NewTask
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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