#[repr(C)]pub struct antfly_inference_pull_progress {
pub abi_size: u32,
pub reserved0: u32,
pub model: antfly_slice,
pub file: antfly_slice,
pub bytes_downloaded: u64,
pub total_bytes: u64,
pub files_done: u64,
pub files_total: u64,
pub cached: bool,
}Expand description
One report to an antfly_inference_pull_json progress callback. The
slices are valid only during the callback. Check abi_size before
reading fields added in later versions.
Fields§
§abi_size: u32§reserved0: u32§model: antfly_sliceThe model reference being pulled (one per requested variant).
file: antfly_slice§bytes_downloaded: u64§total_bytes: u640 when unknown.
files_done: u64§files_total: u64§cached: boolThe file was already present and verified; nothing was downloaded.
Trait Implementations§
impl Copy for antfly_inference_pull_progress
Auto Trait Implementations§
impl !Send for antfly_inference_pull_progress
impl !Sync for antfly_inference_pull_progress
impl Forget for antfly_inference_pull_progress
impl Freeze for antfly_inference_pull_progress
impl Move for antfly_inference_pull_progress
impl RefUnwindSafe for antfly_inference_pull_progress
impl Unpin for antfly_inference_pull_progress
impl UnsafeUnpin for antfly_inference_pull_progress
impl UnwindSafe for antfly_inference_pull_progress
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