pub struct CompiledPlan {Show 15 fields
pub schema_version: u32,
pub graph_id: GraphId,
pub plan_id: PlanId,
pub realm: ExecutionRealm,
pub order: Vec<NodeId>,
pub nodes: Vec<CompiledNode>,
pub buffers: Vec<BufferPlan>,
pub feedback: Vec<FeedbackPlan>,
pub invocation_ports: Vec<PortRef>,
pub propagated_proofs: Vec<String>,
pub propagated_policy: Vec<String>,
pub resulting_fidelity: u16,
pub peak_bytes: u64,
pub persistent_state_bytes: u64,
pub session: Option<SessionContract>,
}Fields§
§schema_version: u32§graph_id: GraphId§plan_id: PlanId§realm: ExecutionRealm§order: Vec<NodeId>§nodes: Vec<CompiledNode>§buffers: Vec<BufferPlan>§feedback: Vec<FeedbackPlan>§invocation_ports: Vec<PortRef>Canonical port table addressed by InputBinding::Invocation.
propagated_proofs: Vec<String>§propagated_policy: Vec<String>§resulting_fidelity: u16§peak_bytes: u64Peak invocation memory: live buffers, kernel workspaces/scratch, and
invocation-scoped state. Session/durable state and feedback history are
excluded and accounted by persistent_state_bytes.
persistent_state_bytes: u64Session/durable state plus feedback history retained across invocations.
session: Option<SessionContract>Implementations§
Source§impl CompiledPlan
impl CompiledPlan
Sourcepub fn to_aot_bytes(&self) -> Result<Vec<u8>, PlanDecodeError>
pub fn to_aot_bytes(&self) -> Result<Vec<u8>, PlanDecodeError>
Deterministic AOT bytes. Ordered collections are fixed by compilation; postcard encodes the schema without host layout or pointer dependence.
Sourcepub fn from_aot_bytes(
bytes: &[u8],
limits: PlanLimits,
) -> Result<Self, PlanDecodeError>
pub fn from_aot_bytes( bytes: &[u8], limits: PlanLimits, ) -> Result<Self, PlanDecodeError>
Decode untrusted AOT bytes under structural limits and re-derive the
physical plan identity before returning an executable plan. max_bytes
is the allocation bound during postcard decode; the count limits are
post-decode semantic bounds within that already-bounded envelope.
Decode and authorize an executable AOT plan against identity supplied
by a trusted compiler, signed manifest, or statically linked firmware.
from_aot_bytes alone performs structural validation, not authorization.
Trait Implementations§
Source§impl Clone for CompiledPlan
impl Clone for CompiledPlan
Source§fn clone(&self) -> CompiledPlan
fn clone(&self) -> CompiledPlan
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more