pub enum ImportProgress {
Found {
id: u64,
name: String,
size: u64,
},
Progress {
id: u64,
offset: u64,
},
IngestDone {
id: u64,
hash: Hash,
},
AllDone {
key: Bytes,
},
Abort(Error),
}
Available on crate feature
rpc
only.Expand description
Progress messages for an doc import operation
An import operation involves computing the outboard of a file, and then either copying or moving the file into the database, then setting the author, hash, size, and tag of that file as an entry in the doc.
Variants§
Found
An item was found with name name
, from now on referred to via id
.
Fields
Progress
We got progress ingesting item id
.
IngestDone
We are done adding id
to the data store and the hash is hash
.
AllDone
We are done setting the entry to the doc.
Fields
§
key: Bytes
The key of the entry
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 ImportProgress
impl Debug for ImportProgress
Source§impl<'de> Deserialize<'de> for ImportProgress
impl<'de> Deserialize<'de> for ImportProgress
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<ImportFileResponse> for ImportProgress
impl From<ImportFileResponse> for ImportProgress
Source§fn from(value: ImportFileResponse) -> Self
fn from(value: ImportFileResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ImportProgress
impl RefUnwindSafe for ImportProgress
impl Send for ImportProgress
impl Sync for ImportProgress
impl Unpin for ImportProgress
impl UnwindSafe for ImportProgress
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