#[non_exhaustive]pub enum TaskType {
Shell,
Agent,
Teammate,
CronJob,
Monitor,
Code,
Ext,
Member,
McpTask,
}Expand description
Task type enum — categorises all background/async task kinds.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Shell
Shell command executed as a background process.
Agent
Sub-agent spawned by AgentTool.
Teammate
In-process teammate (team/swarm mode).
CronJob
Cron/scheduled job.
Monitor
MCP monitor task.
Code
A program the model wrote (RunCode).
Ext
A plugin command run through RunExt.
Member
A persistent team member, alive between the messages it is handed;
each message it runs is a Teammate task of its own.
McpTask
One MCP tool call that the server turned into a task; lasts as long as that call.
Implementations§
Trait Implementations§
impl Copy for TaskType
Source§impl<'de> Deserialize<'de> for TaskType
impl<'de> Deserialize<'de> for TaskType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TaskType
impl StructuralPartialEq for TaskType
Auto Trait Implementations§
impl Forget for TaskType
impl Freeze for TaskType
impl Move for TaskType
impl RefUnwindSafe for TaskType
impl Send for TaskType
impl Sync for TaskType
impl Unpin for TaskType
impl UnsafeUnpin for TaskType
impl UnwindSafe for TaskType
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