pub struct IndexRequest<'e> { /* private fields */ }Implementations§
Source§impl<'e> IndexRequest<'e>
impl<'e> IndexRequest<'e>
Sourcepub fn roots(self, roots: impl IntoIterator<Item = ResourceId>) -> Self
pub fn roots(self, roots: impl IntoIterator<Item = ResourceId>) -> Self
Add provider-specific roots without filesystem path conversion.
Sourcepub fn paths<I, P>(self, paths: I) -> Self
pub fn paths<I, P>(self, paths: I) -> Self
Add filesystem-only paths, canonicalized locally at execution even with
a custom provider. Use roots() for generic provider identities.
pub fn discovery(self, opts: DiscoveryOptions) -> Self
pub fn progress(self, f: ProgressFn<'e>) -> Self
Sourcepub fn execute(self) -> Result<IndexReport>
pub fn execute(self) -> Result<IndexReport>
Embed everything not yet cached and drop cache entries for files that were deleted under the indexed directories.
Auto Trait Implementations§
impl<'e> !RefUnwindSafe for IndexRequest<'e>
impl<'e> !UnwindSafe for IndexRequest<'e>
impl<'e> Freeze for IndexRequest<'e>
impl<'e> Send for IndexRequest<'e>
impl<'e> Sync for IndexRequest<'e>
impl<'e> Unpin for IndexRequest<'e>
impl<'e> UnsafeUnpin for IndexRequest<'e>
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