pub struct Progress<'a> {
pub files: usize,
pub chunks: usize,
pub files_done: usize,
pub chunks_done: usize,
pub current: &'a str,
pub skipped: &'a [(String, SkipReason)],
pub vectors: &'a [Vec<f32>],
}Expand description
Indexing progress, passed to the callback of index_project_with_progress.
Fields§
§files: usizeFiles and chunks found by the walk.
chunks: usize§files_done: usizeFiles and chunks done so far (reused from the previous index or embedded).
chunks_done: usize§current: &'a strPath of the last chunk done; empty before the first.
skipped: &'a [(String, SkipReason)]§vectors: &'a [Vec<f32>]Vectors done since the previous call (reused or embedded), in chunk order.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Progress<'a>
impl<'a> RefUnwindSafe for Progress<'a>
impl<'a> Send for Progress<'a>
impl<'a> Sync for Progress<'a>
impl<'a> Unpin for Progress<'a>
impl<'a> UnsafeUnpin for Progress<'a>
impl<'a> UnwindSafe for Progress<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more