pub struct FilePickerOptions {
pub base_path: String,
pub enable_mmap_cache: bool,
pub enable_content_indexing: bool,
pub mode: FFFMode,
pub cache_budget: Option<ContentCacheBudget>,
pub watch: bool,
}Expand description
Options for creating a FilePicker.
Fields§
§base_path: String§enable_mmap_cache: boolPre-populate mmap caches for top-frecency files after the initial scan.
enable_content_indexing: boolBuild content index after the initial scan for faster content-aware filtering.
mode: FFFModeMode of the picker impact the way file watcher events are handled and the scoring logic
cache_budget: Option<ContentCacheBudget>Explicit cache budget. When None, the budget is auto-computed from
the repo size after the initial scan completes.
watch: boolWhen false, new_with_shared_state skips the background file watcher.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FilePickerOptions
impl RefUnwindSafe for FilePickerOptions
impl Send for FilePickerOptions
impl Sync for FilePickerOptions
impl Unpin for FilePickerOptions
impl UnsafeUnpin for FilePickerOptions
impl UnwindSafe for FilePickerOptions
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> 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