Enum iroh_blobs::store::ImportProgress
source · pub enum ImportProgress {
Found {
id: u64,
name: String,
},
CopyProgress {
id: u64,
offset: u64,
},
Size {
id: u64,
size: u64,
},
OutboardProgress {
id: u64,
offset: u64,
},
OutboardDone {
id: u64,
hash: Hash,
},
}
Expand description
Progress messages for an import operation
An import operation involves computing the outboard of a file, and then either copying or moving the file into the database.
Variants§
Found
Found a path
This will be the first message for an id
CopyProgress
Progress when copying the file to the store
This will be omitted if the store can use the file in place
There will be multiple of these messages for an id
Size
Determined the size
This will come after Found
and zero or more CopyProgress
messages.
For unstable files, determining the size will only be done once the file
is fully copied.
OutboardProgress
Progress when computing the outboard
There will be multiple of these messages for an id
OutboardDone
Done computing the outboard
This comes after Size
and zero or more OutboardProgress
messages
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImportProgress
impl RefUnwindSafe for ImportProgress
impl Send for ImportProgress
impl Sync for ImportProgress
impl Unpin for ImportProgress
impl UnwindSafe for ImportProgress
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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