Skip to main content

IndexRequest

Struct IndexRequest 

Source
pub struct IndexRequest<'e> { /* private fields */ }

Implementations§

Source§

impl<'e> IndexRequest<'e>

Source

pub fn roots(self, roots: impl IntoIterator<Item = ResourceId>) -> Self

Add provider-specific roots without filesystem path conversion.

Source

pub fn paths<I, P>(self, paths: I) -> Self
where I: IntoIterator<Item = P>, P: AsRef<Path>,

Add filesystem-only paths, canonicalized locally at execution even with a custom provider. Use roots() for generic provider identities.

Source

pub fn discovery(self, opts: DiscoveryOptions) -> Self

Source

pub fn progress(self, f: ProgressFn<'e>) -> Self

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(value: T, _simd: S) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.