#[repr(C)]pub struct antfly_open_options {Show 23 fields
pub abi_size: u32,
pub storage_kind: u32,
pub open_mode: u32,
pub profile: u32,
pub flags: u32,
pub reserved0: u32,
pub map_size: u64,
pub ttl_cleanup_enabled: bool,
pub ttl_cleanup_lease_owned: bool,
pub ttl_cleanup_batch_size: u32,
pub ttl_cleanup_owner_id: antfly_slice,
pub ttl_cleanup_lease_ttl_ms: u64,
pub ttl_cleanup_interval_ms: u64,
pub ttl_cleanup_grace_period_ns: u64,
pub inference_host_budget_mb: u32,
pub inference_backend_budget_mb: u32,
pub inference_process_memory_budget_mb: u32,
pub inference_combined_budget_mb: u32,
pub inference_kv_budget_mb: u32,
pub inference_scratch_budget_mb: u32,
pub busy_timeout_ms: u64,
pub reserved: [u64; 6],
pub models_dir: antfly_slice,
}Expand description
One options struct for every storage kind. storage_kind (an
ANTFLY_STORAGE_KIND_* value) picks a .aflite file or a normal
directory; the inference budget fields, busy_timeout_ms, and
The reserved tail and models_dir layout must mirror the header exactly – tests/abi_sizes.rs
checks size_of::<antfly_open_options>() against
antfly_open_options_size().
Fields§
§abi_size: u32§storage_kind: u32§open_mode: u32§profile: u32§flags: u32§reserved0: u32§map_size: u64§ttl_cleanup_enabled: bool§ttl_cleanup_lease_owned: bool§ttl_cleanup_batch_size: u32§ttl_cleanup_owner_id: antfly_slice§ttl_cleanup_lease_ttl_ms: u64§ttl_cleanup_interval_ms: u64§ttl_cleanup_grace_period_ns: u64§inference_host_budget_mb: u32Explicit embedded-inference resource-budget overrides in MiB, 0
meaning automatic/host-detected sizing. Only consulted when flags
carries ANTFLY_OPEN_FLAG_LOCAL_RUNTIME_CONFIGURED.
inference_backend_budget_mb: u32§inference_process_memory_budget_mb: u32§inference_combined_budget_mb: u32§inference_kv_budget_mb: u32§inference_scratch_budget_mb: u32§busy_timeout_ms: u64Milliseconds to retry Lite admission while another process holds the
writer lease or advances the allocator checkpoint (ANTFLY_BUSY), like
sqlite3_busy_timeout. 0 fails immediately. Mutation bodies are never
replayed by this admission retry.
reserved: [u64; 6]§models_dir: antfly_slice