pub struct PartialFile {
pub repo_id: String,
pub filename: String,
pub path: PathBuf,
pub size: u64,
}Expand description
A .chunked.part temp file left by an interrupted chunked download.
Fields§
§repo_id: StringThe repository identifier (e.g., "meta-llama/Llama-3.2-1B").
filename: StringThe .chunked.part filename (e.g., "abc123def456.chunked.part").
path: PathBufAbsolute path to the .chunked.part file.
size: u64Size of the partial file in bytes.
Implementations§
Source§impl PartialFile
impl PartialFile
Sourcepub fn sidecar_paths(&self) -> Vec<PathBuf>
pub fn sidecar_paths(&self) -> Vec<PathBuf>
Returns sibling sidecar paths that should be removed alongside this
partial: the resume-state sidecar {etag}.chunked.part.state and
any orphan write-tmp {etag}.chunked.part.state.tmp left by an
interrupted atomic save.
The paths are returned even when the underlying files do not exist
— callers (run_cache_clean_partial) attempt removal best-effort.
Trait Implementations§
Source§impl Clone for PartialFile
impl Clone for PartialFile
Source§fn clone(&self) -> PartialFile
fn clone(&self) -> PartialFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PartialFile
impl RefUnwindSafe for PartialFile
impl Send for PartialFile
impl Sync for PartialFile
impl Unpin for PartialFile
impl UnsafeUnpin for PartialFile
impl UnwindSafe for PartialFile
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