Enum iroh_bytes::provider::DownloadProgress
source · pub enum DownloadProgress {
Connected,
Found {
id: u64,
child: u64,
hash: Hash,
size: u64,
},
FoundHashSeq {
hash: Hash,
children: u64,
},
Progress {
id: u64,
offset: u64,
},
Done {
id: u64,
},
NetworkDone {
bytes_written: u64,
bytes_read: u64,
elapsed: Duration,
},
Export {
id: u64,
hash: Hash,
size: u64,
target: String,
},
ExportProgress {
id: u64,
offset: u64,
},
Abort(RpcError),
AllDone,
}Expand description
Progress updates for the get operation.
Variants§
Connected
A new connection was established.
Found
Fields
An item was found with hash hash, from now on referred to via id.
FoundHashSeq
Fields
An item was found with hash hash, from now on referred to via id.
Progress
We got progress ingesting item id.
Done
We are done with id, and the hash is hash.
NetworkDone
Fields
We are done with the network part - all data is local.
Export
Fields
The download part is done for this id, we are now exporting the data to the specified out path.
ExportProgress
Fields
We have made progress exporting the data.
This is only sent for large blobs.
Abort(RpcError)
We got an error and need to abort.
AllDone
We are done with the whole operation.
Trait Implementations§
source§impl Debug for DownloadProgress
impl Debug for DownloadProgress
source§impl<'de> Deserialize<'de> for DownloadProgress
impl<'de> Deserialize<'de> for DownloadProgress
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DownloadProgress
impl Send for DownloadProgress
impl Sync for DownloadProgress
impl Unpin for DownloadProgress
impl UnwindSafe for DownloadProgress
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