pub enum Verb {
Show 24 variants
StartTask,
DispatchAttempt,
MintWorkerToken,
ReadTaskState,
CancelTask,
QuerySenior,
MarkPass,
MarkBlocked,
AttachSession,
DetachSession,
Heartbeat,
PollTask,
FetchPrompt,
FetchData,
PostResult,
VerifyToken,
EmitOutput,
SubscribeEvents,
ReadTrace,
AnswerQuery,
OverrideVerdict,
PauseLoop,
ResumeLoop,
InjectDirective,
}Expand description
Every action a participant can request. Grouped by the Role that
typically performs it (see the // operator / // worker / … section
comments below); the grouping is documentation only — actual
authorization is decided by RoleVerbGate::is_allowed.
Variants§
StartTask
Create a new task.
DispatchAttempt
Dispatch (or re-dispatch) an attempt for a task.
MintWorkerToken
Mint a CapToken for a worker.
ReadTaskState
Read the current state of a task.
CancelTask
Cancel a task.
QuerySenior
Ask a Role::Senior a question about a task.
MarkPass
Mark a task/attempt as passed.
MarkBlocked
Mark a task/attempt as blocked.
AttachSession
Attach a session to a task.
DetachSession
Detach a session from a task.
Heartbeat
Emit a liveness heartbeat.
PollTask
Poll for task progress/completion.
FetchPrompt
Fetch the rendered prompt for the current attempt.
FetchData
Fetch task input data.
PostResult
Post the result of an attempt.
VerifyToken
Verify a presented CapToken.
EmitOutput
Emit intermediate output for observers.
SubscribeEvents
Subscribe to the task’s event stream.
ReadTrace
Read the accumulated trace of a task.
AnswerQuery
Answer a query raised via Verb::QuerySenior.
OverrideVerdict
Override a previously recorded verdict.
PauseLoop
Pause the dispatch loop.
ResumeLoop
Resume a paused dispatch loop.
InjectDirective
Inject a directive into a running task.
Trait Implementations§
impl Copy for Verb
Source§impl<'de> Deserialize<'de> for Verb
impl<'de> Deserialize<'de> for Verb
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>,
impl Eq for Verb
impl StructuralPartialEq for Verb
Auto Trait Implementations§
impl Freeze for Verb
impl RefUnwindSafe for Verb
impl Send for Verb
impl Sync for Verb
impl Unpin for Verb
impl UnsafeUnpin for Verb
impl UnwindSafe for Verb
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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