struct McpTaskRecord {
task_id: String,
operation: McpTaskOperation,
state: McpTaskState,
created_at_ms: u128,
updated_at_ms: u128,
progress: Option<McpTaskProgress>,
error: Option<String>,
result_ref: Option<String>,
cancelable: bool,
control: Option<IndexWorkControl>,
}Expand description
One MCP task-progress record.
Fields§
§task_id: StringOpaque session-local task id.
operation: McpTaskOperationOperation family.
state: McpTaskStateCurrent task state.
created_at_ms: u128Creation timestamp in Unix milliseconds.
updated_at_ms: u128Last update timestamp in Unix milliseconds.
progress: Option<McpTaskProgress>Optional progress counters/message.
error: Option<String>Concise failure diagnostic when present.
result_ref: Option<String>Result reference or follow-up tool when present.
cancelable: boolWhether this task can be canceled by the current server.
control: Option<IndexWorkControl>Shared cooperative cancellation boundary for active indexing work.
Implementations§
Source§impl McpTaskRecord
impl McpTaskRecord
Sourcefn is_terminal_state(&self) -> bool
fn is_terminal_state(&self) -> bool
Return whether this record is in a terminal state and can be evicted first.
Trait Implementations§
Source§impl Clone for McpTaskRecord
impl Clone for McpTaskRecord
Source§fn clone(&self) -> McpTaskRecord
fn clone(&self) -> McpTaskRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McpTaskRecord
impl Debug for McpTaskRecord
Auto Trait Implementations§
impl Freeze for McpTaskRecord
impl RefUnwindSafe for McpTaskRecord
impl Send for McpTaskRecord
impl Sync for McpTaskRecord
impl Unpin for McpTaskRecord
impl UnwindSafe for McpTaskRecord
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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