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>,
pub prompt: 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).
prompt: Option<String>Full prompt for deferred execution by the daemon scheduler. Tasks without one are metadata-only and are never claimed.
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.
Sourcepub fn with_prompt(self, prompt: impl Into<String>) -> NewTask
pub fn with_prompt(self, prompt: impl Into<String>) -> NewTask
Persist the full prompt so the scheduler can execute this task later.
pub fn with_priority(self, priority: TaskPriority) -> NewTask
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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