Skip to main content

antfly_open_options

Struct antfly_open_options 

Source
#[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: u32

Explicit 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: u64

Milliseconds 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

Trait Implementations§

Source§

impl Clone for antfly_open_options

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for antfly_open_options

Source§

impl Debug for antfly_open_options

Source§

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

Formats the value using the given formatter. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.