#[non_exhaustive]pub struct EverythingGlobal {}Implementations§
Source§impl EverythingGlobal
impl EverythingGlobal
Sourcepub fn searcher<'a>(&'a mut self) -> EverythingSearcher<'a>
pub fn searcher<'a>(&'a mut self) -> EverythingSearcher<'a>
New the only one searcher.
There is at most one searcher can exist globally at the same time.
Sourcepub fn version(&self) -> Result<(u32, u32, u32, u32, TargetMachine)>
pub fn version(&self) -> Result<(u32, u32, u32, u32, TargetMachine)>
Everything uses the version format: <major>.<minor>.<revision>.<build>.
The build part is incremental and unique for all Everything versions.
pub fn get_major_version(&self) -> Result<u32>
pub fn get_minor_version(&self) -> Result<u32>
pub fn get_revision(&self) -> Result<u32>
pub fn get_build_number(&self) -> Result<u32>
pub fn get_target_machine(&self) -> Result<TargetMachine>
Sourcepub fn save_and_exit(&mut self) -> Result<bool>
pub fn save_and_exit(&mut self) -> Result<bool>
Request Everything to save settings and data to disk and exit.
Sourcepub fn is_db_loaded(&self) -> Result<bool>
pub fn is_db_loaded(&self) -> Result<bool>
Check if Everything’s database is loaded.
When Everything is loading, any queries will appear to return no results. Use this to determine if the database has been loaded before performing a query.
Sourcepub fn is_admin(&self) -> Result<bool>
pub fn is_admin(&self) -> Result<bool>
Check if Everything is running as administrator or as a standard user.
Sourcepub fn is_appdata(&self) -> Result<bool>
pub fn is_appdata(&self) -> Result<bool>
Check if Everything is saving settings and data to %APPDATA%\Everything or to the same location
as the Everything.exe.
Sourcepub fn rebuild_db(&mut self) -> Result<bool>
pub fn rebuild_db(&mut self) -> Result<bool>
Request Everything to forcefully rebuild the Everything index.
Requesting a rebuild will mark all indexes as dirty and start the rebuild process.
Use self.is_db_loaded() to determine if the database has been rebuilt before
performing a query.
Sourcepub fn update_all_folder_indexes(&mut self) -> Result<bool>
pub fn update_all_folder_indexes(&mut self) -> Result<bool>
Request Everything to rescan all folder indexes.
Everything will begin updating all folder indexes in the background.
Sourcepub fn save_db(&mut self) -> Result<bool>
pub fn save_db(&mut self) -> Result<bool>
Request Everything to save the index to disk.
The index is only saved to disk when you exit Everything.
Call this to write the index to the file: Everything.db.
Sourcepub fn save_run_history(&mut self) -> Result<bool>
pub fn save_run_history(&mut self) -> Result<bool>
Request Everything to save the run history to disk.
The run history is only saved to disk when you close an Everything search window or
exit Everything.
Call this to write the run history to the file: Run History.csv.
Sourcepub fn delete_run_history(&mut self) -> Result<bool>
pub fn delete_run_history(&mut self) -> Result<bool>
Delete all run history.
Calling this function will clear all run history from memory and disk.
Sourcepub fn get_run_count(&self, filename: impl AsRef<Path>) -> Result<u32>
pub fn get_run_count(&self, filename: impl AsRef<Path>) -> Result<u32>
Gets the run count from a specified file in the Everything index by file name.
Sourcepub fn set_run_count(
&mut self,
filename: impl AsRef<Path>,
run_count: u32,
) -> Result<()>
pub fn set_run_count( &mut self, filename: impl AsRef<Path>, run_count: u32, ) -> Result<()>
Sets the run count for a specified file in the Everything index by file name.
Sourcepub fn inc_run_count(&mut self, filename: impl AsRef<Path>) -> Result<u32>
pub fn inc_run_count(&mut self, filename: impl AsRef<Path>) -> Result<u32>
Increments the run count by one for a specified file in the Everything by file name.
Sourcepub fn is_fast_sort(&self, sort_type: SortType) -> Result<bool>
pub fn is_fast_sort(&self, sort_type: SortType) -> Result<bool>
Check if the specified file information is indexed and has fast sort enabled.
Sourcepub fn is_file_info_indexed(&self, file_info_type: FileInfoType) -> Result<bool>
pub fn is_file_info_indexed(&self, file_info_type: FileInfoType) -> Result<bool>
Check if the specified file information is indexed.