Skip to main content

ContainerSegments

Struct ContainerSegments 

Source
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: bool

KERNEL_SEG: micro Linux kernel (e.g. Firecracker-compatible vmlinux).

§kernel_size: u64

KERNEL_SEG size in bytes.

§wasm_count: u16

WASM_SEG: interpreter + microkernel modules.

§wasm_total_size: u64

Total WASM_SEG size in bytes.

§vec_segment_count: u16

VEC_SEG: world model vector count.

§index_segment_count: u16

INDEX_SEG: HNSW index count.

§witness_count: u32

WITNESS_SEG: witness bundle count.

§crypto_present: bool

CRYPTO_SEG: present.

§manifest_present: bool

META segment with AGI manifest: present.

§orchestrator_present: bool

Orchestrator configuration present.

§world_model_present: bool

World model data present (VEC + INDEX segments).

§domain_expansion_present: bool

Domain expansion (transfer priors, policy kernels, cost curves) present.

§total_size: u64

Total container size in bytes.

Implementations§

Source§

impl ContainerSegments

Source

pub fn validate(&self, mode: ExecutionMode) -> Result<(), ContainerError>

Validate that the container has all required segments for a given execution mode.

Source

pub fn to_flags(&self) -> u16

Compute the flags bitfield from present segments.

Trait Implementations§

Source§

impl Clone for ContainerSegments

Source§

fn clone(&self) -> ContainerSegments

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ContainerSegments

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ContainerSegments

Source§

fn default() -> ContainerSegments

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.