pub struct PullProgress {
pub model: String,
pub file: String,
pub bytes_downloaded: u64,
pub total_bytes: u64,
pub files_done: u64,
pub files_total: u64,
pub cached: bool,
}Expand description
One report from an Inference::pull progress callback. Owned (copied
out of the C ABI’s borrowed, callback-lifetime-only struct) so it can be
used freely – stored, sent across threads, etc. – without carrying a
lifetime tied to the callback invocation.
Fields§
§model: StringThe model reference being pulled (one per requested variant).
file: String§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§
Source§impl Clone for PullProgress
impl Clone for PullProgress
Source§impl Debug for PullProgress
impl Debug for PullProgress
impl Eq for PullProgress
Source§impl PartialEq for PullProgress
impl PartialEq for PullProgress
impl StructuralPartialEq for PullProgress
Auto Trait Implementations§
impl Forget for PullProgress
impl Freeze for PullProgress
impl Move for PullProgress
impl RefUnwindSafe for PullProgress
impl Send for PullProgress
impl Sync for PullProgress
impl Unpin for PullProgress
impl UnsafeUnpin for PullProgress
impl UnwindSafe for PullProgress
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