pub enum OperatorKind {
MainAi,
Automate,
Composite,
}Expand description
Who/what is driving a spawn: a plain automated worker, an interactive
MainAI operator, or a composite of both. Gates MainAIMiddleware — the
only layer that reads this value — and feeds the 4-tier cascade
resolved by collapse_operator_kind. See “The role of kind” in the
OperatorInfo doc below.
It used to gate OperatorDelegateMiddleware as well. That layer is
gone (it resolved its destination from the launch record rather than
the Run’s seat), so kind no longer decides whether a dispatch reaches
an Operator at all — the agent’s own kind = Operator does.
Variants§
MainAi
An interactive, single-Operator-driven session: spawn_hook’s
before / after fire around every spawn. (Full-spawn delegation
was the other thing this value enabled; that axis no longer
exists.)
Automate
A plain automated worker; middleware passes through into a normal spawn (the default).
Composite
A mixed mode combining automated and MainAi-driven behavior (same
gating as MainAi for middleware purposes).
Trait Implementations§
Source§impl Clone for OperatorKind
impl Clone for OperatorKind
Source§fn clone(&self) -> OperatorKind
fn clone(&self) -> OperatorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OperatorKind
Source§impl Debug for OperatorKind
impl Debug for OperatorKind
Source§impl Default for OperatorKind
impl Default for OperatorKind
Source§fn default() -> OperatorKind
fn default() -> OperatorKind
Source§impl<'de> Deserialize<'de> for OperatorKind
impl<'de> Deserialize<'de> for OperatorKind
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 OperatorKind
Source§impl From<OperatorKind> for OperatorKind
impl From<OperatorKind> for OperatorKind
Source§fn from(k: OperatorKind) -> Self
fn from(k: OperatorKind) -> Self
Source§impl PartialEq for OperatorKind
impl PartialEq for OperatorKind
Source§impl Serialize for OperatorKind
impl Serialize for OperatorKind
impl StructuralPartialEq for OperatorKind
Auto Trait Implementations§
impl Freeze for OperatorKind
impl RefUnwindSafe for OperatorKind
impl Send for OperatorKind
impl Sync for OperatorKind
impl Unpin for OperatorKind
impl UnsafeUnpin for OperatorKind
impl UnwindSafe for OperatorKind
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