pub enum ControlOperation {
SubmitTask {
input: Value,
},
Steer {
invocation_id: String,
instruction: String,
follow_up: bool,
},
Pause {
scope: ControlScope,
},
Resume {
scope: ControlScope,
},
Stop {
scope: ControlScope,
reason: String,
},
CallbackDecision {
callback_id: String,
decision: String,
payload: Value,
},
StructuralProposal {
definition_digest: String,
proposed_revision: u64,
content: Value,
},
}Expand description
Semantic control operations entering the admission queue.
Variants§
SubmitTask
Submit a task input to an admitted node.
Steer
Steer an in-flight invocation with new instructions.
Pause
Request cooperative pause / drain for the given scope.
Fields
§
scope: ControlScopeResume
Resume an admitted waiting or suspended scope.
Fields
§
scope: ControlScopeStop
Cooperatively request termination for the scope.
CallbackDecision
Submit a decision for a pending callback edge.
StructuralProposal
Propose a structural change or new revision.
Implementations§
Source§impl ControlOperation
impl ControlOperation
Sourcepub fn required_grant(
&self,
graph_id: &str,
target_node: Option<&str>,
) -> OperationGrant
pub fn required_grant( &self, graph_id: &str, target_node: Option<&str>, ) -> OperationGrant
Determine required grant for this operation.
Trait Implementations§
Source§impl Clone for ControlOperation
impl Clone for ControlOperation
Source§fn clone(&self) -> ControlOperation
fn clone(&self) -> ControlOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ControlOperation
impl Debug for ControlOperation
Source§impl<'de> Deserialize<'de> for ControlOperation
impl<'de> Deserialize<'de> for ControlOperation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ControlOperation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ControlOperation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ControlOperation
Source§impl PartialEq for ControlOperation
impl PartialEq for ControlOperation
Source§impl Serialize for ControlOperation
impl Serialize for ControlOperation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ControlOperation
Auto Trait Implementations§
impl Forget for ControlOperation
impl Freeze for ControlOperation
impl Move for ControlOperation
impl RefUnwindSafe for ControlOperation
impl Send for ControlOperation
impl Sync for ControlOperation
impl Unpin for ControlOperation
impl UnsafeUnpin for ControlOperation
impl UnwindSafe for ControlOperation
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> 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
Compare self to
key and return true if they are equal.