Enum iroh_bytes::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(RpcError),
}Expand description
Progress updates for the add operation.
Variants§
Found
Fields
An item was found with name name, 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.
AllDone
Fields
§
format: BlobFormatThe format of the added data.
We are done with the whole operation.
Abort(RpcError)
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
Auto Trait Implementations§
impl RefUnwindSafe for AddProgress
impl Send for AddProgress
impl Sync for AddProgress
impl Unpin for AddProgress
impl UnwindSafe for AddProgress
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