#[repr(C)]pub struct antfly_inference_options {
pub abi_size: u32,
pub flags: u32,
pub models_dir: antfly_slice,
pub host_budget_mb: u32,
pub backend_budget_mb: u32,
pub process_memory_budget_mb: u32,
pub combined_budget_mb: u32,
pub kv_budget_mb: u32,
pub scratch_budget_mb: u32,
pub call_timeout_ms: u64,
pub reserved: [u64; 8],
}Expand description
Options for antfly_inference_open. reserved/abi_size layout must
mirror the header exactly – tests/abi_sizes.rs checks
size_of::<antfly_inference_options>() against
antfly_inference_options_size().
Fields§
§abi_size: u32§flags: u32No flags are defined yet; must be zero.
models_dir: antfly_sliceModels directory. Empty uses $ANTFLY_INFERENCE_MODELS_DIR, else
~/.antfly/inference/models.
host_budget_mb: u32Resource budgets in MiB, 0 meaning automatic; the same knobs as the
inference_*_budget_mb fields of antfly_open_options.
backend_budget_mb: u32§process_memory_budget_mb: u32§combined_budget_mb: u32§kv_budget_mb: u32§scratch_budget_mb: u32§call_timeout_ms: u64Deadline for each call in milliseconds; 0 means none.
reserved: [u64; 8]Trait Implementations§
Source§impl Clone for antfly_inference_options
impl Clone for antfly_inference_options
impl Copy for antfly_inference_options
Auto Trait Implementations§
impl !Send for antfly_inference_options
impl !Sync for antfly_inference_options
impl Forget for antfly_inference_options
impl Freeze for antfly_inference_options
impl Move for antfly_inference_options
impl RefUnwindSafe for antfly_inference_options
impl Unpin for antfly_inference_options
impl UnsafeUnpin for antfly_inference_options
impl UnwindSafe for antfly_inference_options
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