pub struct AgentCtxEntry {
pub view: AgentContextView,
pub policy: ContextPolicy,
}Expand description
One (task_id, attempt) entry of EngineState::agent_ctx — the
materialized crate::core::agent_context::AgentContextView (Contract
C, GH #20) and the effective mlua_swarm_schema::ContextPolicy
AgentContextMiddleware already applied to it (projection-adapter
ST5), folded into one struct (GH #23) so the two values — written
together at the same single insert site — can no longer drift apart.
Fields§
§view: AgentContextViewThe materialized view; the Worker axis’s read-back source
(Engine::fetch_worker_payload{,_trusted} / Engine::agent_context_for).
policy: ContextPolicyThe resolved policy already applied to view; read back by
Engine::context_policy_for so a consumer can filter a different
step’s pointer list against this key’s policy without re-deriving it
from the Blueprint.
Trait Implementations§
Source§impl Clone for AgentCtxEntry
impl Clone for AgentCtxEntry
Source§fn clone(&self) -> AgentCtxEntry
fn clone(&self) -> AgentCtxEntry
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 AgentCtxEntry
impl Debug for AgentCtxEntry
Source§impl Default for AgentCtxEntry
impl Default for AgentCtxEntry
Source§fn default() -> AgentCtxEntry
fn default() -> AgentCtxEntry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentCtxEntry
impl RefUnwindSafe for AgentCtxEntry
impl Send for AgentCtxEntry
impl Sync for AgentCtxEntry
impl Unpin for AgentCtxEntry
impl UnsafeUnpin for AgentCtxEntry
impl UnwindSafe for AgentCtxEntry
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
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,
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>
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