pub struct ContainerSegments {Show 13 fields
pub kernel_present: bool,
pub kernel_size: u64,
pub wasm_count: u16,
pub wasm_total_size: u64,
pub vec_segment_count: u16,
pub index_segment_count: u16,
pub witness_count: u32,
pub crypto_present: bool,
pub manifest_present: bool,
pub orchestrator_present: bool,
pub world_model_present: bool,
pub domain_expansion_present: bool,
pub total_size: u64,
}Expand description
Required segments for a valid AGI container.
Used by the container builder/validator to ensure completeness.
Fields§
§kernel_present: boolKERNEL_SEG: micro Linux kernel (e.g. Firecracker-compatible vmlinux).
kernel_size: u64KERNEL_SEG size in bytes.
wasm_count: u16WASM_SEG: interpreter + microkernel modules.
wasm_total_size: u64Total WASM_SEG size in bytes.
vec_segment_count: u16VEC_SEG: world model vector count.
index_segment_count: u16INDEX_SEG: HNSW index count.
witness_count: u32WITNESS_SEG: witness bundle count.
crypto_present: boolCRYPTO_SEG: present.
manifest_present: boolMETA segment with AGI manifest: present.
orchestrator_present: boolOrchestrator configuration present.
world_model_present: boolWorld model data present (VEC + INDEX segments).
domain_expansion_present: boolDomain expansion (transfer priors, policy kernels, cost curves) present.
total_size: u64Total container size in bytes.
Implementations§
Source§impl ContainerSegments
impl ContainerSegments
Sourcepub fn validate(&self, mode: ExecutionMode) -> Result<(), ContainerError>
pub fn validate(&self, mode: ExecutionMode) -> Result<(), ContainerError>
Validate that the container has all required segments for a given execution mode.
Trait Implementations§
Source§impl Clone for ContainerSegments
impl Clone for ContainerSegments
Source§fn clone(&self) -> ContainerSegments
fn clone(&self) -> ContainerSegments
Returns a duplicate of the value. Read more
1.0.0 · 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 ContainerSegments
impl Debug for ContainerSegments
Source§impl Default for ContainerSegments
impl Default for ContainerSegments
Source§fn default() -> ContainerSegments
fn default() -> ContainerSegments
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContainerSegments
impl RefUnwindSafe for ContainerSegments
impl Send for ContainerSegments
impl Sync for ContainerSegments
impl Unpin for ContainerSegments
impl UnsafeUnpin for ContainerSegments
impl UnwindSafe for ContainerSegments
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