pub struct FileIndexRuntimeConfig {
pub enabled: bool,
pub roots: Vec<FileIndexRootConfig>,
pub excludes: Vec<String>,
pub max_depth: usize,
pub max_file_bytes: u64,
pub scan_interval: Duration,
pub scan_timeout: Duration,
pub max_files_per_root: usize,
pub query_timeout: Duration,
}Expand description
Runtime budgets and authorized roots for local file-location indexing.
Fields§
§enabled: bool§roots: Vec<FileIndexRootConfig>§excludes: Vec<String>§max_depth: usize§max_file_bytes: u64§scan_interval: Duration§scan_timeout: Duration§max_files_per_root: usize§query_timeout: DurationImplementations§
Source§impl FileIndexRuntimeConfig
impl FileIndexRuntimeConfig
pub const DEFAULT_MAX_DEPTH: usize = 32
pub const DEFAULT_MAX_FILE_BYTES: u64
pub const DEFAULT_SCAN_INTERVAL: Duration
pub const DEFAULT_SCAN_TIMEOUT: Duration
pub const DEFAULT_MAX_FILES_PER_ROOT: usize = 50_000
pub const DEFAULT_QUERY_TIMEOUT: Duration
pub fn from_environment( environment: &EnvironmentConfig, ) -> Result<Self, FileIndexRuntimeConfigError>
Trait Implementations§
Source§impl Clone for FileIndexRuntimeConfig
impl Clone for FileIndexRuntimeConfig
Source§fn clone(&self) -> FileIndexRuntimeConfig
fn clone(&self) -> FileIndexRuntimeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileIndexRuntimeConfig
impl Debug for FileIndexRuntimeConfig
impl Eq for FileIndexRuntimeConfig
Source§impl PartialEq for FileIndexRuntimeConfig
impl PartialEq for FileIndexRuntimeConfig
impl StructuralPartialEq for FileIndexRuntimeConfig
Auto Trait Implementations§
impl Freeze for FileIndexRuntimeConfig
impl RefUnwindSafe for FileIndexRuntimeConfig
impl Send for FileIndexRuntimeConfig
impl Sync for FileIndexRuntimeConfig
impl Unpin for FileIndexRuntimeConfig
impl UnsafeUnpin for FileIndexRuntimeConfig
impl UnwindSafe for FileIndexRuntimeConfig
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> 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.