Enum iroh_blobs::get::db::DownloadProgress
source · pub enum DownloadProgress {
InitialState(TransferState),
FoundLocal {
child: BlobId,
hash: Hash,
size: BaoBlobSize,
valid_ranges: RangeSpec,
},
Connected,
Found {
id: u64,
child: BlobId,
hash: Hash,
size: u64,
},
FoundHashSeq {
hash: Hash,
children: u64,
},
Progress {
id: u64,
offset: u64,
},
Done {
id: u64,
},
AllDone(Stats),
Abort(Error),
}
Expand description
Progress updates for the get operation.
Variants§
InitialState(TransferState)
Initial state if subscribing to a running or queued transfer.
FoundLocal
Data was found locally.
Fields
§
size: BaoBlobSize
The size of the entry in bytes.
Connected
A new connection was established.
Found
An item was found with hash hash
, from now on referred to via id
.
Fields
§
child: BlobId
Identifier for this blob within this download.
Will always be BlobId::Root
unless a hashseq is downloaded, in which case this
allows to identify the children by their offset in the hashseq.
FoundHashSeq
An item was found with hash hash
, from now on referred to via id
.
Fields
Progress
We got progress ingesting item id
.
Done
We are done with id
.
AllDone(Stats)
All operations finished.
This will be the last message in the stream.
Abort(Error)
We got an error and need to abort.
This will be the last message in the stream.
Trait Implementations§
source§impl Clone for DownloadProgress
impl Clone for DownloadProgress
source§fn clone(&self) -> DownloadProgress
fn clone(&self) -> DownloadProgress
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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
source§impl From<DownloadProgress> for DownloadResponse
Available on crate feature rpc
only.
impl From<DownloadProgress> for DownloadResponse
Available on crate feature
rpc
only.source§fn from(value: DownloadProgress) -> Self
fn from(value: DownloadProgress) -> Self
Converts to this type from the input type.
source§impl From<DownloadResponse> for DownloadProgress
Available on crate feature rpc
only.
impl From<DownloadResponse> for DownloadProgress
Available on crate feature
rpc
only.source§fn from(value: DownloadResponse) -> Self
fn from(value: DownloadResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DownloadProgress
impl RefUnwindSafe for DownloadProgress
impl Send for DownloadProgress
impl Sync for DownloadProgress
impl Unpin for DownloadProgress
impl UnwindSafe for DownloadProgress
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