Struct Everything

Source
pub struct Everything;
Expand description

A wrapper around the Everything API.
Calls cleanup on drop.

Implementations§

Source§

impl Everything

Source

pub fn get_last_error() -> EverythingResult<()>

Source

pub fn wait_db_loaded(timeout: Duration) -> EverythingResult<()>

Sleep the current thread until the Everything database is loaded.
See https://www.voidtools.com/support/everything/sdk/everything_isdbloaded/

Set the query to be used by the next call to query.
See https://www.voidtools.com/support/everything/sdk/everything_setsearch/

Source

pub fn set_sort(&self, sort: EverythingSort)

Set the sorting to be used by the next call to query.
See https://www.voidtools.com/support/everything/sdk/everything_setsort/

Source

pub fn get_sort(&self) -> Option<EverythingSort>

Source

pub fn is_fast_sort(&self, sort: EverythingSort) -> bool

Source

pub fn is_result_file(&self, index: DWORD) -> bool

Source

pub fn is_result_folder(&self, index: DWORD) -> bool

Source

pub fn is_result_volume(&self, index: DWORD) -> bool

Source

pub fn get_num_results(&self) -> DWORD

Returns the number of visible results in everything’s memory.
Will be 0 until the first call to query.
Then will equal the number of max results specified by set_max_results.
See https://www.voidtools.com/support/everything/sdk/everything_getnumresults/

Source

pub fn get_total_results(&self) -> DWORD

Returns the number of results returned by the query.
See https://www.voidtools.com/support/everything/sdk/everything_gettotresults/

Source

pub fn set_max_results(&self, max_results: DWORD)

Limit’s the number of results returned by the everything.
See https://www.voidtools.com/support/everything/sdk/everything_setmax/

Source

pub fn get_max_results(&self) -> DWORD

Returns the current maximum number of results.
See https://www.voidtools.com/support/everything/sdk/everything_getmax/

Source

pub fn set_result_offset(&self, offset_results: DWORD)

Set the index offset that everything will start its result window from.
See https://www.voidtools.com/support/everything/sdk/everything_setoffset/

Source

pub fn get_result_offset(&self) -> DWORD

Source

pub fn set_request_flags(&self, request_flags: EverythingRequestFlags)

Set the type of data that the everything service will load.
See https://www.voidtools.com/support/everything/sdk/everything_setreplywindow/

Source

pub fn get_request_flags(&self) -> EverythingRequestFlags

Source

pub fn query(&self) -> EverythingResult<()>

Source

pub fn reset(&self)

Source

pub fn get_result_count(&self) -> u32

Returns the total number of indexes in the everything result window.
See https://www.voidtools.com/support/everything/sdk/everything_getnumfileresults/

Source

pub fn get_result_full_path(&self, index: u32) -> EverythingResult<String>

Creates a owned string from full path slice for a result at an index.
See https://www.voidtools.com/support/everything/sdk/everything_getresultfullpathname/

Source

pub fn full_path_iter( &self, ) -> impl Iterator<Item = EverythingResult<String>> + '_

Returns an iterator over the full paths of the results.
See https://www.voidtools.com/support/everything/sdk/everything_getresultfullpathname/

Source

pub fn get_result_file_name(&self, index: u32) -> EverythingResult<String>

Iterates from the pointer to find a null terminator returning an owned string.
See https://www.voidtools.com/support/everything/sdk/everything_getresultfilename/

Source

pub fn name_iter(&self) -> impl Iterator<Item = EverythingResult<String>> + '_

Returns an iterator over the file names of the results.
See https://www.voidtools.com/support/everything/sdk/everything_getresultfilename/

Source

pub fn get_result_created_date(&self, index: u32) -> EverythingResult<u64>

Returns the created date of the result at the index.
See https://www.voidtools.com/support/everything/sdk/everything_getresultdatecreated/

Source

pub fn get_result_count_modified_date( &self, index: u32, ) -> EverythingResult<u64>

Returns the modified date of the result at the index.
See https://www.voidtools.com/support/everything/sdk/everything_getresultdatemodified/

Source

pub fn get_result_size(&self, index: u32) -> EverythingResult<u64>

Returns the last accessed date of the result at the index.
See https://www.voidtools.com/support/everything/sdk/everything_getresultdateaccessed/

Source

pub fn get_result_extension(&self, index: u32) -> EverythingResult<String>

Returns the extension of the result at the index.
iterates from a string pointer to find a null terminator returning an owned string.
See https://www.voidtools.com/support/everything/sdk/everything_getresultextension/

Source

pub fn new() -> Everything

Waits for the Everything database to be fully loaded before returning an instance.

Source

pub fn version() -> String

Trait Implementations§

Source§

impl Debug for Everything

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Everything

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Drop for Everything

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

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> 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<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.