Enum iroh_blobs::export::ExportProgress
source · pub enum ExportProgress {
Found {
id: u64,
hash: Hash,
size: BaoBlobSize,
outpath: PathBuf,
meta: Option<Bytes>,
},
Progress {
id: u64,
offset: u64,
},
Done {
id: u64,
},
AllDone,
Abort(Error),
}
Expand description
Progress events for an export operation
Variants§
Found
The download part is done for this id, we are now exporting the data to the specified out path.
Fields
§
size: BaoBlobSize
The size of the entry in bytes.
Progress
We have made progress exporting the data.
This is only sent for large blobs.
Fields
Done
We finished exporting a blob
AllDone
We are done with the whole operation.
Abort(Error)
We got an error and need to abort.
Trait Implementations§
source§impl Clone for ExportProgress
impl Clone for ExportProgress
source§fn clone(&self) -> ExportProgress
fn clone(&self) -> ExportProgress
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 ExportProgress
impl Debug for ExportProgress
source§impl<'de> Deserialize<'de> for ExportProgress
impl<'de> Deserialize<'de> for ExportProgress
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<ExportProgress> for ExportResponse
Available on crate feature rpc
only.
impl From<ExportProgress> for ExportResponse
Available on crate feature
rpc
only.source§fn from(value: ExportProgress) -> Self
fn from(value: ExportProgress) -> Self
Converts to this type from the input type.
source§impl From<ExportResponse> for ExportProgress
Available on crate feature rpc
only.
impl From<ExportResponse> for ExportProgress
Available on crate feature
rpc
only.source§fn from(value: ExportResponse) -> Self
fn from(value: ExportResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ExportProgress
impl RefUnwindSafe for ExportProgress
impl Send for ExportProgress
impl Sync for ExportProgress
impl Unpin for ExportProgress
impl UnwindSafe for ExportProgress
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