Enum iroh_blobs::provider::AddProgress
source · pub enum AddProgress {
Found {
id: u64,
name: String,
size: u64,
},
Progress {
id: u64,
offset: u64,
},
Done {
id: u64,
hash: Hash,
},
AllDone {
hash: Hash,
format: BlobFormat,
tag: Tag,
},
Abort(Error),
}
Expand description
Progress updates for the add operation.
Variants§
Found
An item was found with name name
, from now on referred to via id
Fields
Progress
We got progress ingesting item id
.
Done
We are done with id
, and the hash is hash
.
AllDone
We are done with the whole operation.
Fields
§
format: BlobFormat
The format of the added data.
Abort(Error)
We got an error and need to abort.
This will be the last message in the stream.
Trait Implementations§
source§impl Debug for AddProgress
impl Debug for AddProgress
source§impl<'de> Deserialize<'de> for AddProgress
impl<'de> Deserialize<'de> for AddProgress
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<AddPathResponse> for AddProgress
Available on crate feature rpc
only.
impl From<AddPathResponse> for AddProgress
Available on crate feature
rpc
only.source§fn from(value: AddPathResponse) -> Self
fn from(value: AddPathResponse) -> Self
Converts to this type from the input type.
source§impl From<AddStreamResponse> for AddProgress
Available on crate feature rpc
only.
impl From<AddStreamResponse> for AddProgress
Available on crate feature
rpc
only.source§fn from(value: AddStreamResponse) -> Self
fn from(value: AddStreamResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for AddProgress
impl RefUnwindSafe for AddProgress
impl Send for AddProgress
impl Sync for AddProgress
impl Unpin for AddProgress
impl UnwindSafe for AddProgress
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