Enum iroh_bytes::provider::ProvideProgress
source · pub enum ProvideProgress {
Found {
id: u64,
name: String,
size: u64,
},
Progress {
id: u64,
offset: u64,
},
Done {
id: u64,
hash: Hash,
},
AllDone {
hash: Hash,
},
Abort(RpcError),
}Expand description
Progress updates for the provide 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
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 ProvideProgress
impl Debug for ProvideProgress
source§impl<'de> Deserialize<'de> for ProvideProgress
impl<'de> Deserialize<'de> for ProvideProgress
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 ProvideProgress
impl Send for ProvideProgress
impl Sync for ProvideProgress
impl Unpin for ProvideProgress
impl UnwindSafe for ProvideProgress
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