pub enum AddProgressEvent {
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),
}
Available on crate feature
rpc
only.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 AddProgressEvent
impl Debug for AddProgressEvent
Source§impl<'de> Deserialize<'de> for AddProgressEvent
impl<'de> Deserialize<'de> for AddProgressEvent
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 AddProgressEvent
impl From<AddPathResponse> for AddProgressEvent
Source§fn from(value: AddPathResponse) -> Self
fn from(value: AddPathResponse) -> Self
Converts to this type from the input type.
Source§impl From<AddStreamResponse> for AddProgressEvent
impl From<AddStreamResponse> for AddProgressEvent
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 AddProgressEvent
impl RefUnwindSafe for AddProgressEvent
impl Send for AddProgressEvent
impl Sync for AddProgressEvent
impl Unpin for AddProgressEvent
impl UnwindSafe for AddProgressEvent
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