pub struct antfly_inference { /* private fields */ }Expand description
An open embedded inference runtime, with no database. Opaque; see
antfly_inference_open. Models load on first use and stay cached until
the handle closes. Handles have the same thread-safety guarantees as
antfly_db (see zig/CAPI.md’s “Thread Safety” section): any thread may
call concurrently, close waits for in-flight calls, and a closed or
foreign handle is rejected with ANTFLY_INVALID_ARGUMENT.
Auto Trait Implementations§
impl Forget for antfly_inference
impl Freeze for antfly_inference
impl Move for antfly_inference
impl RefUnwindSafe for antfly_inference
impl Send for antfly_inference
impl Sync for antfly_inference
impl Unpin for antfly_inference
impl UnsafeUnpin for antfly_inference
impl UnwindSafe for antfly_inference
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