#[non_exhaustive]pub enum ProgressEvent {
IndexProgress {
progress: IndexProgress,
},
Walked {
roots: Vec<ResourceId>,
},
Discovered {
resources: usize,
},
Embedding {
done: usize,
total: usize,
},
}Expand description
Progress notifications for long operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IndexProgress
Resource counts for this indexing pass; independent of batch-local segments.
Fields
§
progress: IndexProgressWalked
Roots this pass’s listing actually walked, resolved once before the walk,
in scope order. Sent just before Discovered, and only when the provider
can attribute its listing to them; every later count in the pass then
describes resources found under these roots.
Fields
§
roots: Vec<ResourceId>Discovered
Embedding
total segments need embedding; done so far.
Trait Implementations§
Source§impl Clone for ProgressEvent
impl Clone for ProgressEvent
Source§impl Debug for ProgressEvent
impl Debug for ProgressEvent
impl Eq for ProgressEvent
Source§impl PartialEq for ProgressEvent
impl PartialEq for ProgressEvent
impl StructuralPartialEq for ProgressEvent
Auto Trait Implementations§
impl Freeze for ProgressEvent
impl RefUnwindSafe for ProgressEvent
impl Send for ProgressEvent
impl Sync for ProgressEvent
impl Unpin for ProgressEvent
impl UnsafeUnpin for ProgressEvent
impl UnwindSafe for ProgressEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.